Page 1 of 1

not a question, just a tip

Posted: Mon Jul 15, 2002 2:21 pm
by Patriot
<?

if (ini_get('register_globals')) {
echo "register_globals is <b>on</b>";
} else {
echo "register_globals is <b>off</b>";
}

?>


this will check to see if register globals are on or off.

just thought it might come in handy for some newbies :roll:

Posted: Mon Jul 15, 2002 3:49 pm
by protokol
Cooler version :lol:

echo "register_globals = <b>".(int)ini_get('register_globals')."</b>";