Reread the docs here (the table):

  http://www.php.net/ini_set

You cannot set this directive at runtime.  Using .htaccess
is as close as you'll get to that.  I see no reason why
using auto_prepend_file here would be better than include()
as this is exactly what include() is for.

Regards,
Philip


On 4 Dec 2002, 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 =.
> 
> 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'))
>  echo "<br>ini_alter success<br>";
> else
>  echo "<br>ini_alter failed<br>";
> 
> but do not work.
> 
> If I change the ini_alter with include() it work all fine but I do not
> want to use include or require function.
> 
> have sameone an idea about this code do not work??
> 
> Thanks for all and if it is possible reply to me also to e-mail follow.
> 
> [EMAIL PROTECTED]
> www.infocamere.it
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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

Reply via email to