Globalising a variable...

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

How do you globalise a variable?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

http://us2.php.net/manual/en/language.v ... .scope.php
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

How do I check if $GLOBALS are registered?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Not quite sure what your asking. You can check to see if register globals is off or on by using this:
Code: [ Select ]
echo 'register_globals = ' . ini_get('register_globals') . "\n";
  • Nightslyr
  • Proficient
  • Proficient
  • Nightslyr
  • Posts: 283

Post 3+ Months Ago

Turning register_globals on is a bad idea: http://roshanbh.com.np/2008/02/register ... oblem.html
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

Nightslyr wrote:
Turning register_globals on is a bad idea: http://roshanbh.com.np/2008/02/register ... oblem.html

Alright... I stopped the idea of using globals yesterday anyway since it didn't do what I wanted...

Thanks anyway.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 119 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.