Re: Register Globals
| From: | toby z | Date: | Wed, 22 Oct 2003 04:44:29 +0000 |
| Subject: | Re: Register Globals | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21859@lists.php.net to get a copy of this message | ||
:)
when u r workin with regs on u catch ur form variables just like
$variable
but when u work with regs off ..... u need to catch ur variables with
$_POST[variable] or $_GET[variable]
ur scripts will run fine on ur machine with regs on n variables
$variable
but ofcourse when u transfer them to ur host .... which will have
regs off ......
im sure u can imagine the diseaster ...... or should i spell it out
.... ??????
better to avoid the fuss ..... afterwrds .... of changin all ur from
process pages .....
n listen to experience talkin pal .....
i didnt .... n i suffered :)
good luck .....
toby .....
--- trystano@aol.com wrote: > Ok, thanks.
>
> Is that because on the hosting server that I transfer my scripts
> to, they have their own PHP.ini file that relates to all scripts
> that are run on that server?
>
> Tryst
>
>>no ! ! ! !
--- Trystano@aol.com wrote: > Just out of curiosity, if I was to
work with register_globals set
> to on (on
> my home/testing/devel server), and then transfer my scripts across
> to a hosting
> server for them to be run live, will my scripts run if the PHP.ini
> file is
> configured to have register_globals set to off?
>
> Tryst
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk