NYCPHP Meetup

NYPHP.org

[nycphp-talk] $_SERVER

Jon Baer jonbaer at jonbaer.com
Sun May 27 11:51:56 EDT 2007


 From what I recall this depends on what's thrown into it @ the SAPI  
handler level which you can view via source ...

http://lxr.php.net/source/php-src/sapi/
http://lxr.php.net/source/php-src/sapi/apache2handler/sapi_apache2.c
http://lxr.php.net/source/php-src/sapi/isapi/php5isapi.c

- Jon

On May 26, 2007, at 8:23 PM, David Krings wrote:

> Hi!
>
> Every web server generates a different $_SERVER array in PHP. I got  
> burnt by it once. I used several keys/values that are present in  
> the Luckasoft EnginServer, but not in Apache. I am sure that IIS  
> again has a different $_SERVER and the whole picture may look  
> different on Linux or Mac OS.
>
> The question of the day is: Which keys/values are guaranteed to be  
> present in $_SERVER on all/most of the modern servers?
>
> David
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list