Re: possible to set config vars inside a script?

From: Date: Fri, 13 Oct 2000 22:07:39 +0000
Subject: Re: possible to set config vars inside a script?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-20097@lists.php.net to get a copy of this message
Joao Prado Maia writes: > > On Fri, 13 Oct 2000, Marty Vance wrote: > > > I generally use php4, but now I am on a project that is using php3.0.9 > > as a cgi (with no php3.ini file). The machine is in a hosting farm, and > > I am unable to change the configuration settings. > > You can use .htaccess files to change the PHP configuration stuff. > > http://www.php.net/manual/configuration.php > > Regards, > Joao You can, but if you're not already using them, it can be a performance hit, though how much of one varies. For track_vars in PHP 3, you turn it on by inserting the following line at the very beginning of your script: <?php_track_vars?> Note that it must be exactly what I've written there--you cannot use this tag to open a PHP code block. Meaning it must be <?php, followed immediately by php_track_vars, followed immediately by ?>. But that'll do it. Totally unrelated, but may I ask why on earth you're using 3.0.9? -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#20097) next »