Re: using new AUTOGLOBALS

From: Date: Fri, 05 Apr 2002 17:09:52 +0000
Subject: Re: using new AUTOGLOBALS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91747@lists.php.net to get a copy of this message
the thing is, using the methods I described in my first post, the superglobals or autoglobals arent working. I cant figure out why, and , like the other guy said, most books dont include this feature in a topic for discussion. Can anyone offer advice? "Cyberskydive" <cyberskydive@sunraydesigns.com> wrote in message news:20020405145742.15718.qmail@pb1.pair.com... > So I wanna learn how to code properly with register_globals off, I reead on > PHP.net about the new auto globals and inmy new php4.1.2 windows > installation using php.ini-rec edited according to the intall.txt file, and > a few changes from books I have (upload tmp dir etc) I'm off to learn how to > use the new auto globals. I've tried $_REGISTER and $_POST . Here is what I > tried as a simple test. > > <form method="post" action="somefile.php"> > <input type="text" name="is_name"> > <input type="submit"> > </form> > > --somefile.php-- > > <? > > print("$_REGISTER["is_name"]"); > or > print("$_POST["is_name"]"); > > ?> > > I also tried $HTTP_POST_VARS["name"] > > I didnt think about it till now but would it work if i assigned say : > $is_name = getenv($_POST or $_REGISTER); > > this came about while I was learning sessions, which were not working right > with 4.0 installed with APACHE on windows. So I decided to update my php, as > an ISAPI module, instead of running as a cgi version, and I left > register_globals off. > > when I tried to edit an example session script I had from a book to use > $_POST, $_REGISTER, or even $_SESSION i got a blank page on the reload. I > think sid is returning empty. > > Can anyone offer me advice on this, proper coding and or proper > configuration in PHP.INI > > I'm trying to learn all this at once-lol, and learn it properly the first > time around, especially since register globas will be deprecitated-poof. > > I WANT TO BE A GOOD PHP DUDE_LOL_HAHA > >

« previous php.general (#91747) next »