Re: Update to mail() function help

From: Date: Fri, 23 May 2003 21:45:07 +0000
Subject: Re: Update to mail() function help
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1950@lists.php.net to get a copy of this message
Thanks so much -- I'll give this a try. Is there some online documentation where I'd be able to find things like this, or is pretty much just up to me to search through the code to see how it's done elsewhere? (By the way, I attended the Vancouver PHP User Group meeting when you gave your presentation, and found it very informative. I have kept the PDF of it for future reference.) Patrick On 5/23/03 13:30, Rasmus Lerdorf wrote: > To access $_SERVER['SERVER_NAME'] from C you would do: > > zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "SERVER_NAME", > sizeof("SERVER_NAME"), (void **) &server_name)==FAILURE) > > But, if variables_order doesn't include "S" it isn't going to be there. > You are probably better off getting it directly from the server instead of > from the PHP symbol table. You can call php_apache_getenv() directly, or > to be more correct and portable to other SAPI's you would call > sapi_module.getenv(). > > -Rasmus >

« previous php.internals (#1950) next »