Jump to content

Shayna23

New Members
  • Posts

    7
  • Joined

  • Last visited

Shayna23's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Good question, I'd like to see the answer, too.
  2. objnoob, thank you for your response. That is what I needed. To ALL the rest of you (who all ASSUMED that I don't have access to my own PHP.ini file, who ASSUMED that I wanted to have to all of a sudden have my Registered Globals ON, who ASSUMED that I don't know about the security risks, who ASSUMED that never try to emulate an environment to make things safer, and who ASSUMED that all you have to do is make "Auth=1" and now you have root), here's a little link for ya: http://uncyclopedia.wikia.com/wiki/Assume Now I know where all the people from the '90's Perl Newsgroup hang out.
  3. No, Mr. Administrator, in the "other thread," you answered.... no, you *snapped* and used foul language. If you are going to follow me around on every post I make, then delete my membership. I don't like being followed. Sir.
  4. Hi everyone, I have a question. Which code is better at extracting variables: a.) foreach($_POST as $var=>$value){ ${$var} = $value; } -or- b.) foreach($_POST as $var=>$value){ $$var = $value; } Does version "b" have any pitfalls? Thank you.
  5. Hi Everybody, I'm trying to simulate a "register globals = ON" environment with this: foreach($_POST as $var=>$value){ ${$var} = $value; } I just noticed that I can use the bracket-less "$$var = $value" instead of "${$var} = $value." Did I just discover something really cool and easier to type? Or are there horrible pitfalls to the bracketless $$var. I wonder which is faster? Sorry for asking such a basic (dumbo-style) question, but I couldn't google the answer because google strips out dollarsigns and brackets from my search LOL
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.