Re: Variables through whole scripts
| From: | Jayme Jeffman Filho | Date: | Wed, 20 Sep 2000 22:20:52 +0000 |
| Subject: | Re: Variables through whole scripts | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3015@lists.php.net to get a copy of this message | ||
I don't how to create the variables on the Apache server, but you can get
enviroment variables created using the getenv("env_var") function like in
$ip = getenv("REMOTE_ADDR");
I hope this helps.
Jayme.
http://www.conex.com.br/jjeffman
-----Mensagem Original-----
De: ICG®Webmaster <webmaster@icg.es>
Para: PHP <php-db@lists.php.net>
Enviada em: quarta-feira, 20 de setembro de 2000 13:08
Assunto: [PHP-DB] Variables through whole scripts
> Hi,
>
> Does anybody knows a way to pass global variables to php scripts
> from the Apache Server?
>
> Well, I mean in Roxen when you configure the PHP module, you can
> define variables that will be passed to all PHP scripts : administrator
> e-mail, site colors, numeric values, etc.... so you don't need to
> define them anymore.
>
> Any idead?
>
> Thanks.
> xavi.
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>