Re: Rewrite <img> and <a> tags.
| From: | CPT John W. Holmes | Date: | Fri, 25 Jul 2003 18:03:21 +0000 |
| Subject: | Re: Rewrite <img> and <a> tags. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156918@lists.php.net to get a copy of this message | ||
> How can I easiest rewrite A and IMG tags? I'm fetching a page with
> fsockopen() and I need to rewrite these tags before sending it on to a
user.
>
> My own theory is that it's made with Regular Expressions. I just don't
> know these myself.
If you're writing one of those "anonymous" browsing programs where
everything is requested through PHP and shown on your site with the links
rewritten, there's already one written on phpclasses.org. See how they do
it.
---John Holmes...