note 36195 deleted from function.ini-set by didou
| From: | didou@php.net | Date: | Tue, 30 Sep 2003 14:06:23 +0000 |
| Subject: | note 36195 deleted from function.ini-set by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57499@lists.php.net to get a copy of this message | ||
Note Submitter: php@replies.cyways.com
----
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.