Re: [PHP] Extracting just the filename from REQUEST_URI

2001-03-28 Thread Clayton Dukes
Better yet, Here's what I'm trying to do: If someone does a search in a search engine, let's say google... The user does a search for "foo" google returns my website with a link to "foo" which no longer exists (because I've moved it). How can I get the query string passed from google and put

RE: [PHP] Extracting just the filename from REQUEST_URI

2001-03-28 Thread FvH
Start parsing the string from the string-length to the begin. so //training/olddata/file.htm is 27 chars long Start at 27 and parse it back till you've found the '/' char for the first time. Read the positionnr. of the / and copy that position+1...strlen and you're ready. [FvH] From: Clayton Du