Re: ini function like ini_set and ini_alter

From: Date: Wed, 04 Dec 2002 16:44:38 +0000
Subject: Re: ini function like ini_set and ini_alter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126999@lists.php.net to get a copy of this message
On Thursday 05 December 2002 00:33, Franco Pozzer wrote: > Thanks for all. > > My end it is Apache 1.3.27 and PHP 4.3.2 in Win32 system NT 4.0. > > I have the php.ini auto_prepend_file like this: > auto_prepend_file="C:\OPENFEDRA\Apache\htdocs\fedra\sv\cfg\" > > All work fine with this configuration of the php.ini. > > For same reason I must to do not configure php.ini and the directives > auto_prepend_file must be null like auto_prepend_file =. Why could you not configure your php.ini? Other places where you can set auto_prepend_file is in httpd.conf or in a .htaccess file. > I have discovered ini_alter function but I do not be able to work in my > application. > > My script it is like: > <? > $path="C:\\OPENFEDRA\\Apache\\htdocs\\fedra\\sv\\cfg\\"; > > echo"<br>$path<br>"; > > if(ini_alter('auto_prepend_file', $path.'systemVariables.php')) You can't set the auto_prepend_file value at runtime -- auto_prepend has (should have) already taken place by the time your script is run! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Collapsed Backbone */

« previous php.general (#126999) next »