RE: [PHP] Enough is Enough.......
| From: | Beauford.2005 | Date: | Sun, 20 Jul 2003 16:19:06 +0000 |
| Subject: | RE: [PHP] Enough is Enough....... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155897@lists.php.net to get a copy of this message | ||
Done. You must have read my mind. I just finished putting the whole
thing in MySQL - since I am using it anyway to hold all my other data it
was easy to do. Took me about 45 minutes to do this as opposed to a week
with the other, and it still didn't work. I'd still be curious to why
the other is didn't work though. I know my logic is correct, but maybe
what I was trying to do just wasn't feasible.
Thanks for the input.
-----Original Message-----
From: Curt Zirzow [mailto:curt@zirzow.dyndns.org]
Sent: July 19, 2003 2:33 AM
To: PHP
Subject: Re: [PHP] Enough is Enough.......
Beauford.2005 <beauford.2005@rogers.com> wrote:
> Hi,
Hello
> [...]
>
> $list = preg_replace('/(<.*?>)(.*)/', '$2$1', $list);
> sort ($list);
> $list = preg_replace('/(.*?)(<.*>)/', '$2$1', $list);
what is list after the first preg and after the second one, that regex
doesn't look safe to me.
Do you have access to a database? This task would be a whole lot easier
to do, plus a whole lot more safer.
Curt
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php