using ini_set in php

Jason Munro jason at stdbev.com
Fri Aug 12 16:15:14 CDT 2005


On 3:43:42 pm 08/12/05 Jack <quiet_celt at yahoo.com> wrote:
> Thanks Jason,
> for the pointer. I didn't think to check the values of
> the ini via phpinfo (mental block I guess). Although I
> had tried this with no success:
>
> ini_set('session.use_cookies', '1');
> ini_set('session.use_only_cookies', '0');
> ini_set('session.use_trans_sid', '1');
>
> Is there some command I am missing after this or could
> it be that I don't have the privileges to call the
> function?
> Or does it go away as soon as I change pages? The
> value
> for 'session.use_trans_sid' is off and ini_set has no
> effect. Do I need to do a restart for this to take
> effect?

Only some of the php.ini settings can be set by ini_set. You can use the
reference here:

http://us2.php.net/manual/en/ini.php#ini.list

The key to what values can be set where is at the bottom of the page.


\__  Jason Munro
 \__ jason at stdbev.com
  \__ http://hastymail.sourceforge.net/



More information about the Kclug mailing list