*.ini

From: Date: Wed, 03 Oct 2001 22:57:16 +0000
Subject: *.ini
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-9678@lists.php.net to get a copy of this message
How can I access php.ini - or any *.ini - using PHP? [Session] session.save_path= E:\CD\PHP\sessiondata In Pascal, I would do something like this, for example: readstring('[Session]', Mystring); where Mystring becomes = "E:\CD\PHP\sessiondata" writestring('[Session]', Mystring); John ---------------------------------------------------------------------------------------------------------- Sean Malloy wrote: > You could just use the session_save_path([string path]); function in your > code? > > "Jtjohnston" <jtjohnston@courrier.usherb.ca> wrote in message > news:3BB94EA1.4BE857A@courrier.usherb.ca... > > 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 > > -- John Taylor-Johnston Langues Modernes poste 289

« previous php.windows (#9678) next »