Reply to Func to Turn Relative URLs into Abs URLs

Your name:

Reply:


Posted by tom on 10/24/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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация