Re: [PHP] removing parts of a string...

2003-07-24 Thread Tristan . Pretty
ore idiot proof after I finish on the current prob I'm on ;-) Roll on Friday! Curt Zirzow <[EMAIL PROTECTED]> 24/07/2003 17:29 To: [EMAIL PROTECTED] cc: Subject: Re: [PHP] removing parts of a string... * Thus wrote [EMAIL PROTECTED] ([EMAIL

Re: [PHP] removing parts of a string...

2003-07-24 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Cheers for your help... > I did this in the end... > > $rest = substr($row[file_info], 27, 100); > $download = "/home/sites/site1/web$rest"; > > where $row[file_info] = the full URL and the 27th character is

Re: [PHP] removing parts of a string...

2003-07-24 Thread Tristan . Pretty
e! Cheers one and all!! Tris... "R'twick Niceorgaw" <[EMAIL PROTECTED]> 24/07/2003 15:18 To: [EMAIL PROTECTED] cc: Subject: Re: [PHP] removing parts of a string... On 24 Jul 2003 at 15:03, [EMAIL PROTECTED] wrote: > I

Re: [PHP] removing parts of a string...

2003-07-24 Thread sven
hi, Juan Nin wrote: > From: <[EMAIL PROTECTED]> > > >> I wanna be able to take a URL >> http://www.mysite.com/downloads/file_1_a.pdf >> >> and then remove: >> http;//www.mysite.com/ > [...] > > look at preg_match() ... or preg_replace(); > > regards, ciao SVEN -- PHP General Mailing List (h

Re: [PHP] removing parts of a string...

2003-07-24 Thread R'twick Niceorgaw
On 24 Jul 2003 at 15:03, [EMAIL PROTECTED] wrote: > I wanna be able to take a URL > http://www.mysite.com/downloads/file_1_a.pdf > > and then remove: > http;//www.mysite.com/ > > then add: > /host/sites/site1/web/ > > to > downloads/file_1_a.pdf > > Turning: > http://www.mysite.com/downloads/f

Re: [PHP] removing parts of a string...

2003-07-24 Thread Juan Nin
From: <[EMAIL PROTECTED]> > I wanna be able to take a URL > http://www.mysite.com/downloads/file_1_a.pdf > > and then remove: > http;//www.mysite.com/ [...] look at preg_match() regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php