473,473 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

php unix and windows?

Hi guys,
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?

Thanx
--
Yang
Jul 17 '05 #1
4 1649
"Yang Li Ke" <ya******@sympatico.ca> writes:
Hi guys,
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?


Um...

Test it on Windows.

:-)
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/
Jul 17 '05 #2
CTO

Normally scripts will work well on Windows which worked on Linux. Only
scripts which need external programms are difficult to port.

Christoph
Jerry Sievers wrote:
"Yang Li Ke" <ya******@sympatico.ca> writes:

Hi guys,
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?

Um...

Test it on Windows.

:-)

Jul 17 '05 #3
Yang Li Ke wrote:
Hi guys,
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?

Thanx

Off the top of my head - Pathnames would help/are important though its
been a long time since I've run Apache/PHP on a Windoze environment.

Other than path names, the only other thing I can think of might be
problems from writing a script in an Apache/PHP environment and then
hoping it runs on an IIS environment. Or, you might have various
libraries compiled in on your linux environment that are not available
to your windoze environment.

Lastly, you've not said what version of windoze - I'm sure there are
folks around here using PHP on an M$ environment that might help if you
were sharing this info with them.

laters
randelld
Jul 17 '05 #4
"Yang Li Ke" <ya******@sympatico.ca> wrote in message news:<VI*********************@news20.bellglobal.co m>...
Hi guys,
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?


Usually not much unless if your script uses *nix only functions.
For these functions, you can usually find the workaround in the user
notes (example: <http://in.php.net/getmxxr> ).

You can add such fixes in the common include file say config.php.
You may use the handly function_exists()
<http://in.php.net/function_exists> in the workaround.

--
"Democracy: Where all citizens are politicians and all politicians
are citizens"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dpackwood | last post by:
Hello, I have two different scripts that do pretty much the same thing. The main perl script is on Windows. It runs and in the middle of it, it then calls out another perl script that then...
3
by: Rob | last post by:
Does anyone know if there are any good comparisons between Windows and Unix performance? Or does anyone have examples of Oracle databases running large numbers (200+) of concurrent users. I am...
6
by: Matthew | last post by:
How would I go about creating a simple "hello world" program that will run in Unix. I am using MS Visual C++.
22
by: Ryan M | last post by:
I've been programming for a while, but most of my experience is on unix. How do C compilers work on operating systems that weren't written in C? And that have no libc? Compiling C on unix seems...
18
by: Sharon | last post by:
is microsoft going to develop .Net for Unix? or at lest CLR for Unix? 10x
15
by: Alpha | last post by:
I was told that Unix API can only be called using C++, ATL and MFC. However, I was also told that C# can do that through Pinvoke to a DLL that interfaces with the Unix API. Can someone direct me...
10
by: emmitsuks | last post by:
Can I compile C source in an PC editor like Miracle, build it, and then take that .exe over to Unix and run it there? Is there a preferred group for beginners such as myself to join?
7
by: programming | last post by:
Hi all, i have been having trouble with a login script that works on my windows machine, however when i upload it to the Unix server through VPN, the same script won't work! It won't parse...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
1
RRick
by: RRick | last post by:
I have a unix C++ project that needs to be converted over to windows visual studio. I'm not sure of the exact version of VS, but it's a recent version, probabIy 2003 or 2005. I would like the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.