Re: [PHP-DEV] extensions and $HTTP_SERVER_VARS

2001-04-19 Thread Sterling Hughes

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 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] extensions and $HTTP_SERVER_VARS

2001-04-19 Thread Rasmus Lerdorf

How portable?  Not all web servers even set this variable, so it will
never be completely portable.

-Rasmus

On Thu, 19 Apr 2001, Hartmut Holzgraefe wrote:

>
> any portable way to get values like $HTTP_HOST from within an extension?
> at the C level?
>
> --
> Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77
>
> --
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] extensions and $HTTP_SERVER_VARS

2001-04-19 Thread Hartmut Holzgraefe


any portable way to get values like $HTTP_HOST from within an extension?
at the C level?

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]