[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma

On Wed, 27 Feb 2002, CC Zona wrote:

> In that case, the "auto_prepend_file" config option may be of interest.
> It's described on the page previously mentioned.

Awesome... that was just what I needed.  I hadn't made the connection
before.

Thanks
TjL



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona

In article ,
 [EMAIL PROTECTED] (Timothy J. Luoma) wrote:

> > > I have a virtual domain under Apache and do not have access to the global
> > > php.ini file
> > >
> > > Apache lets me set site-wide configuration in an /.htaccess file
> > >
> > > Is there something similar for PHP?
> >
> > Forget "similar", you can set PHP config options in the .htaccess file
> > itself.  See .
> 
> Thanks for your reply.
> 
> I'm afraid I did a poor job of asking my question(*).  My apologies.
> 
> I would like to set some variables of my own creation (ie $DOMAIN_NAME) on
> a global basis.

In that case, the "auto_prepend_file" config option may be of interest.  
It's described on the page previously mentioned.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma

On Wed, 27 Feb 2002, CC Zona wrote:

> > I have a virtual domain under Apache and do not have access to the global
> > php.ini file
> >
> > Apache lets me set site-wide configuration in an /.htaccess file
> >
> > Is there something similar for PHP?
>
> Forget "similar", you can set PHP config options in the .htaccess file
> itself.  See .

Thanks for your reply.

I'm afraid I did a poor job of asking my question(*).  My apologies.

I would like to set some variables of my own creation (ie $DOMAIN_NAME) on
a global basis.

I am looking for the best way to do that without access to the php.ini
file.

TjL

ps -- I promise to go re-read
http://www.tuxedo.org/~esr/faqs/smart-questions.html ten times :-)




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona

In article ,
 [EMAIL PROTECTED] (Timothy J. Luoma) wrote:

> I have a virtual domain under Apache and do not have access to the global
> php.ini file
> 
> Apache lets me set site-wide configuration in an /.htaccess file
> 
> Is there something similar for PHP?

Forget "similar", you can set PHP config options in the .htaccess file 
itself.  See .

You can also set PHP options on a per-script basis using the ini_set() 
function .

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php