Re: RSS / eregi_replace()
| From: | Curt Zirzow | Date: | Wed, 04 Aug 2004 01:18:14 +0000 |
| Subject: | Re: RSS / eregi_replace() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192641@lists.php.net to get a copy of this message | ||
* Thus wrote Anthony Ritter:
> Greetings,
>
> I'm using an RSS feed from the New York Times and right now the a href link
> takes the user to the same window.
>
> I'd like the link to open in it's own window by using the target .html
> attribute.
>
> I was hoping that I could use the eregi_replace() call by inserting:
>
> <a
> href="http://\\0">target="_blank">\\0</a>
>
> where it matches any character between the <link></link> string in the URL.
You might want to look into just getting a plain old rss parser.
It'll probably save a lot of headaches.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!