| 
	
 | 
 Posted by tom on 07/04/78 11:34 
hi group, 
 
i desperately need a function that will transform relative URLs to 
absolute URLs in the SRC part of <img> tags. 
 
ie: 
 
function makeAbsolute($html,$basehref) 
{ 
 //if regex match = relative URL ==> return  img tag with absolute URL 
} 
 
i've scoured Google, PHP.net, PHPClasses.org, etc.., but have been 
unable to find such a function. 
 
since i'm an idiot regarding anything concerning RegEx, i've been 
unable to write this function on my own. 
 
if anyone has such a function, i'd be very glad if you could please 
post it.
 
  
Navigation:
[Reply to this message] 
 |