php in linux platform

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
irvine
Forum Newbie
Posts: 14
Joined: Sat Jul 26, 2003 3:04 am

php in linux platform

Post by irvine »

hi,

usually we use the php with the windows platform, then is it possible the php intergrated with linux platform?

how about the code in windows platform , is it need to change some code or re - code it???

thank you.......
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

If you switch from Windows to Linux it's unlikely that you'll have to recode anything - but you might.

For example, Windows recognises \ and / as a path separator but (I think) you'd have to change any backslashes to forward slashes for Linux.

There's a minor issue with the fopen() function - see: http://uk2.php.net/manual/en/function.fopen.php

AFAIK, differences are all pretty minor stuff like this relating to file systems - as you'd expect really. The php manual and user comments are worth a read (user comments may not always be correct, although the bad posts are usually picked up by someone).
Last edited by McGruff on Thu Aug 28, 2003 9:55 pm, edited 1 time in total.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Re: php in linux platform

Post by m3rajk »

irvine wrote:hi,

usually we use the php with the windows platform, then is it possible the php intergrated with linux platform?

how about the code in windows platform , is it need to change some code or re - code it???

thank you.......
paths in posix are all /

ulike windows, you only need \n not \r\n but it'll honor that. umm... you can modify it to accept \ but otherwise it's only beneficial, the environment has no inherint memory leaks
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Anyone else got some info on cross-platform issues? Might be good to build a definitive tutorial from this thread.
Post Reply