Duh ! lol sorry ! Example 1
<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Edit Plus"> <title>Locations</title> </head> <body bgcolor="#6699FF"> <div align="center"> <p><font color="black">Welcome to<br> </font><font color="red"><img src="lg_imode.gif" alt="" height="36" width="120" align="baseline" border="0"><br> <div align="left">Your Preference:</div><br> <a accesskey="1" href="schwul.php4">驪 Schwul</a><br> <a accesskey="2" href="lesbisch.chtml">Lesbisch</a><br> </font><p></p> </div> </body> </html> Example 2 <html><head><title>i-mode</title></head> <body> <div align="center"><img SRC="/imode/img/logo_40.gif" vspace=3 alt="logo"><br><img src="/imode/img/desc.gif" alt="E-Cards verschicken"></div> <hr noshade size=2>  <a accesskey="1" href="#s">Auswahl</a><br>  <a accesskey="2" href="imode.fpl?op=categorylist&uid=55%2eFAGAE&partner=">Mehr Karten</a><br>  <a accesskey="3" href="imode.fpl?op=searchlist&uid=55%2eFAGAE&partner=">Karten suchen</a><br>  <a accesskey="4" href="imode.fpl?op=impressum&uid=55%2eFAGAE&partner=">Impressum</a><br> <hr noshade size=2> <a name="s"><font color="#cc0000">Edgars Auswahl</font></a><br> <div align="center"> <img src="/db/imodeklein/edgar-IMODE-1-.gif" vspace=2><br> <a href="imode.fpl?op=imodecard&prefix=IMODE&nummer=1&suffx=&uid=55%2eFAGAE&par tner=">verschicken</a><br> <img src="/db/imodeklein/edgar-IMODE-6-.gif" vspace=2><br> <a href="imode.fpl?op=imodecard&prefix=IMODE&nummer=6&suffx=&uid=55%2eFAGAE&par tner=">verschicken</a><br> <img src="/db/imodeklein/edgar-IMODE-2-.gif" vspace=2><br> <a href="imode.fpl?op=imodecard&prefix=IMODE&nummer=2&suffx=&uid=55%2eFAGAE&par tner=">verschicken</a><br> <img src="/db/imodeklein/edgar-IMODE-7-.gif" vspace=2><br> <a href="imode.fpl?op=imodecard&prefix=IMODE&nummer=7&suffx=&uid=55%2eFAGAE&par tner=">verschicken</a><br> </div> <hr noshade size=2>  <a accesskey="0" href="http://www.baesurl.com/imenu/">i-menu</a> </body> </html> > On Tuesday 30 April 2002 19:43, John Fishworld wrote: > > > $imode_code = file("$url_file"); > > $file_name = basename($url_file); > > $path = dirname($url_file); > > $stripped_path = eregi_replace("^(.{2,6}://)?[^/]*/", "", $path); > > > > On Tuesday 30 April 2002 19:17, John Fishworld wrote: > > > > Okay right I'm experimenting with an i-mode parser ! > > > > I copy the file (url entered) to a local location ! > > > > Then read through the whole file line at a time and change/replace the > > > > things that need replaceing ! > > > > On of the things that I need to replace is the links to the pictures so > > > > that they still show even ! > > > > I've already got from the original file the original location > > > > http://www.whatever.com > > > > and now want to insert that in front of the gif files > > > > ie > > > > $imode_code[$i] = eregi_replace("(<img src=).+\.gif\"" , > > > > "\\1$next_path\\2",$imode_code[$i]); > > > > > > > > There are just gif files in this ! > > > > > > > > Does that make more sense ? > > > > > > Unfortunately, no. Could you post say 20 lines of this file you're > > > talking about. > > I mean the file that you're readingparsing, not your program. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > The absent ones are always at fault. > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php