Hi,
You could have a template of php.ini with this content:
[Session]
session.save_path=<session.save_path> ; argument passed to save_handler
Then read the entire file into a php variable and do a replace on the file before
saving it to the new locatinn.
$php_ini = str_replace("<session.save_path>", "E:\\CD\\PHP\\sessiondata", $php_ini);
- Frank
> I am running PHP in a weird configuration - :) - on a CD Rom! Therefore:
>
> 1) - Each time I run my CD ROM server, I need my setup executable to
> reconfigure a copy of php.ini and copy it to the windows directory and
> reconfigure.
>
> [Session]
> session.save_path= E:\CD\PHP\sessiondata ; argument passed
> to save_handler
>
> My questions are:
>
> 1) How can I configure an *.ini file with ease using PHP?
> 2) Specifically, how can I reconfiigure "session.save_path" to the PHP
> variable $temp
>
> E:\CD\PHP\sessiondata needs to be read and write, which is not possible
> on a CD Rom.
>
> An email post & reply would be most helpful.
>
> John
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]