not a question, just a tip

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Patriot
Forum Commoner
Posts: 34
Joined: Tue Jun 18, 2002 1:36 pm

not a question, just a tip

Post 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:
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

Cooler version :lol:

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