Forum Moderators: coopster

Message Too Old, No Replies

Reference for specific syntax

         

bkeep

4:09 pm on Mar 16, 2008 (gmt 0)

10+ Year Member



Is there a reference to the specific syntax available to Windows based versions of php vs Linux based versions if any?

for example
The function 'getenv' does not work if your Server API is ASAPI (IIS).
So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"].

Best Regards,
Brandon

DrDoc

4:36 pm on Mar 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can always query the $_SERVER array, whether on a Windows or Linux platform.

Or, are you talking about all differences between Windows and Linux versions?

bkeep

1:54 am on Mar 17, 2008 (gmt 0)

10+ Year Member



Yes I was hoping to find a list with all the differences if one exists

Thanks for your reply
Brandon

Habtom

6:38 am on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not exactly a list, but php.net provides the differences on each function on a page dedicated for the function in the form of notes or warnings.

See the warning on this one. [php.net]

bkeep

7:29 am on Mar 17, 2008 (gmt 0)

10+ Year Member



WOW that is not going to be fun trying to go through every function I have used to see if it is cross platform compatible. I think I will just leave Windows unsupported ;) ...for now

Thanks for your reply
Brandon