RE: [PHP] ini_set() broken?

From: Date: Mon, 08 Jul 2002 03:27:00 +0000
Subject: RE: [PHP] ini_set() broken?
Groups: php.general 
Request: Send a blank email to php-general+get-106013@lists.php.net to get a copy of this message
On Sun, 7 Jul 2002, Miguel Cruz wrote: >> <? >> if(ini_set("register_globals", "0")) >> echo "ini_set success"; >> else >> echo "ini_set failed"; >> ?> [snip] I haven't tried this code, but I assume you're trying to say that "ini_set failed" is displayed, but you're expecting the other output to be displayed. Am I correct there? What happens if you use http://localhost/file.php?var=something or whatever your test script's path is and have this line at the end of the script echo "var = |$var|"; does $var contain anything. If it doesn't, then ini_set() worked... otherwise.. um... find other way of doing it(??)

« previous php.general (#106013) next »