Re: php.ini

From: Date: Tue, 02 Oct 2001 06:13:34 +0000
Subject: Re: php.ini
Groups: php.windows 
Request: Send a blank email to php-windows+get-9643@lists.php.net to get a copy of this message
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 >

« previous php.windows (#9643) next »