Re: Re: redoing website after 7 years
| From: | VamVan | Date: | Fri, 09 Jan 2009 04:19:10 +0000 |
| Subject: | Re: Re: redoing website after 7 years | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285799@lists.php.net to get a copy of this message | ||
Yeah right. Don't use this solution no matter what if you have database
connections , sessions or anything !!!
Anyways I meant intelligent replace. :)
Thanks,
V
On Thu, Jan 8, 2009 at 8:17 PM, Chris <dmagick@gmail.com> wrote:
>
> I know many people will grin at me for this solution but may be faster way
>> to overcome this problem to do a find for $ and replace with $_REQUEST.
>> even
>> this will help you if you dealt with $_POST, $_GET, $_COOKIE.
>>
>
> Please don't.
>
> $connection = mysql_connect(...)
>
> becomes
>
> $_REQUEST[$connection] (or something)
>
>
> Anyways avoid this solution if you can completely. Its mandatory to script
>> your code with reg globals off.
>>
>
> It is now, 7 yrs ago was php4.2 (or so) when it was only just changed to
> being off by default.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>