note 20799 added to function.ini-set
| From: | dzekic at yahoo dot com | Date: | Tue, 16 Apr 2002 16:57:25 +0000 |
| Subject: | note 20799 added to function.ini-set | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29442@lists.php.net to get a copy of this message | ||
Reply to: johnzoet@netscape.com
If setting cannot be set function returns FALSE. You have to check if it is identical to FALSE.
Consider:
if(ini_set("magic_quotes_gp", "0") === FALSE)
echo "Cannot set";
else
echo "It's OK";
Output will be:
"Cannot set"
Because there is no setting "magic_quotes_gp" there is only "magic_quotes_gpc".
Try to change it and it will work.
--
http://www.php.net/manual/en/function.ini-set.php
http://master.php.net/manage/user-notes.php?action=edit+20799
http://master.php.net/manage/user-notes.php?action=delete+20799
http://master.php.net/manage/user-notes.php?action=reject+20799