[PHP] Re: using new AUTOGLOBALS
by cyberskydive other posts by this author
Apr 5 2002 5:09PM messages near this date
Re: [PHP] using new AUTOGLOBALS
|
Re: [PHP] Re: using new AUTOGLOBALS
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@[...].com> wrote in message
news:20020405145742.15718.qmail@[...]..
> 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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
cyberskydive
Miguel Cruz
Philip Olson
cyberskydive
Erik Price
Erik Price
|