Thanks Christoph, for the response.

I try to d interpreting what you write to me and hope to make it in the correct
way.

My  file that I like auto_prepend it is under Document_Root of the web_server
Apache in the path like this:
C:\OPENFEDRA\apache\htdocs\sv\cfg\systemVariables.php.

Well. The PHP worh in the Apache as CGI and php.ini are load with any execution
of the script PHP.

Before using the function ini_alter() in script PHP I would have to read the
files systemVariables?

I have made a test in order to see if other directives of php.ini can
dynamically be modified from script always with the function ini_alter() or
ini_set().

I have tried to change the session_path_file directive and are successful to
make this thing.

Of this they are not sure but I have one what little clear one that regards
that some directives of PHP cannot be modified from system the Win32.

The reason of this I have not clearly and I do not  know it.

I hope to have written in clear way and I ask you the courtesy for dirmi if you
there it is  a way in order to resolve the thing.

I have tried to use also the directives of Apache creating a file .htaccess
that he contains the directive of php.ini like this:
php_value auto_prepend_file
"C:/OPENFEDRA/Apache/htdocs/fedra/sv/cfg/systemVariables.php"  and without
modify my script PHP.

But I have not understood where to put these rows and then putting the
directive of Apache AllowOverride to the All value I have a InternalServer
error.

Also on this you can help me?

Ciao e grazie Franco.



Christoph Grottolo wrote:

> 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.
>
> No, you can't change auto_prepend_file with ini_alter, because the file you
> want to prepend should be read before your script, that is, before you call
> ini_alter...
>
> Christoph
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to