Re: converting scripts for register_globals=Off
| From: | jeffreyb at ungodly dot com | Date: | Thu, 29 Apr 2004 15:00:36 +0000 |
| Subject: | Re: converting scripts for register_globals=Off | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34179@lists.php.net to get a copy of this message | ||
If you have already have a number of scripts and, especially, if you are doing
things with the variables inside the script (in other words, the variables
appear more than once), it can be more convenient to convert at the top of
each page, eg:
$id = $_REQUEST['id'];
$this = $_REQUEST['this'];
$that = $_SERVER['that'];
etc...
Jeffrey Baumgartner
Date sent: Thu, 29 Apr 2004 11:40:14 +0200
From: "Kim Jacobs (Crooks) - Mweb"
<KJacobs@mweb.com>
To: <php-db@lists.php.net>
Subject: [PHP-DB] converting scripts for register_globals=Off
> if any of you could help me out, I would greatly appreciate it... I am
> an absolute beginner to php (2 weeks now) and dont know what I dont
> know...
>
> I have written some scripts to access my online SQL db and I've tested
> the scripts on my machine with PHP 4.3.6 and register_globals = On Now
> where I host my site, uses PHP 4.3.5 and has register_globals = Off
> which means of course, that my scripts arent working, but I dont know
> why....
>
> My question is, how do I convert my scripts so that they will work
> please? I know that $id and $submit are two of the 'inputs' that it
> doesnt like, but I dont know the rest
>
> Tx
> K
>
>
> MWEB: S.A.'s most trusted and reliable Internet Service Provider. Just
> Like That.
>
> To join, go to: http://join.mweb.co.za or call 0860032000.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php