|
Posted by tom on 10/24/89 11:34
i was thinking of using preg_match to search for Relative URLS
beginning with either a '/' or something other than 'http://',
'https://' or 'ftp://'.
then, since i KNOW the Base HREF, adding the Base HREF to the beginning
of these URLS.
FYI, as background: i'm working with a PHP app that deals with images
found in RSS / Atom newsfeeds. stupidly a lot of applications, blogs,
etc, create newsfeeds containing images with paths relative to the web
root, so all i'd have to do is
(a)detect the relative URLs with a REgEx
(b)add the base href to the start of these relative URLs
[Back to original message]
|