Re: Re: redoing website after 7 years
| From: | Andrew Ballard | Date: | Mon, 12 Jan 2009 14:24:06 +0000 |
| Subject: | Re: Re: redoing website after 7 years | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286087@lists.php.net to get a copy of this message | ||
On Sun, Jan 11, 2009 at 5:09 PM, Robert Cummings <robert@interjinn.com> wrote:
> On Mon, 2009-01-12 at 09:00 +1100, Chris wrote:
>> Robert Cummings wrote:
>> > On Fri, 2009-01-09 at 08:56 -0500, Andrew Ballard wrote:
>> >> On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings <robert@interjinn.com>
>> >> wrote:
>> >>> On Fri, 2009-01-09 at 15:17 +1100, Chris 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)
>> >>> How did you get those braces when you did search and replace?
>> >>>
>> >>> ;)
>> >>>
>> >>> Cheers,
>> >>> Rob.
>> >> Doesn't your search and replace tool support regular expression
>> >> matching and replacement?
>> >
>> > Well yes, but the instrutions didn't indicate using a regex ;)
>>
>> I'd like to see you try it without a regex.. ;) I guess you could do it
>> but php isn't going to parse it (or everything is going to be set to
>> $_REQUEST)..
>
> The point of my original comment was that you didn't follow the
> instructions ;)
>
> Cheers,
> Rob.
Ah, yes... instructions. But I find that project instructions are
often like the DNA sequences in the movie Jurassic Park - nearly
complete but lacking critical segments that require someone to fill in
the gaps with whatever is lying around the shop that looks like it
will fit. :-)
Andrew