note 36195 added to function.ini-set

From: Date: Tue, 30 Sep 2003 13:34:03 +0000
Subject: note 36195 added to function.ini-set
Groups: php.notes 
Request: Send a blank email to php-notes+get-57496@lists.php.net to get a copy of this message
It appears that you cannot have a variable as the second parameter of ini_set(). For instance, <?php ini_set("session.cookie_lifetime",3600); ?> works correctly, but <?php $lifetime=3600; ini_set("session.cookie_lifetime",$lifetime); ?> leaves the parameter unchanged or, sometimes, unset. I'd like to split initialization parameters off into a separate page where they can be customized without confronting the script user with ini_set() commands, but that doesn't seem possible. ---- Manual Page -- http://www.php.net/manual/en/function.ini-set.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36195 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36195&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36195&report=yes

« previous php.notes (#57496) next »