On Thu, 19 Apr 2001, Rasmus Lerdorf wrote:
> How portable? Not all web servers even set this variable, so it will
> never be completely portable.
>
> -Rasmus
>
(what Rasmus said, and :) you can grab them out of the EG(symbol_table)
if you still want them:
{
zval **server_vars;
if (zend_hash_find(&EG(symbol_table),
"HTTP_SERVER_VARS",
sizeof("HTTP_SERVER_VARS"),
(void **) &server_vars)) == FAILURE) {
php_error(E_WARNING, "ficken, no server vars");
return;
}
/* Manipulate server_vars :) */
}
-Sterling
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]