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

Reply via email to