Re: [PHP] Getting location bar and stripping file-ending of a string..

2001-03-13 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aviv Revach) wrote: > 2. Let's say I have a string such as: > "http://www.blabla.com/dir1/dir2/file.php3", > How can I can strip the file-ending(".php3") out the string? Option 1: parse_url() Option 2: strpos() & str_replace() Option 3: e

[PHP] Getting location bar and stripping file-ending of a string..

2001-03-13 Thread Aviv Revach
Hey! I have a few questions: 1. How could I get the browser's location bar value (the full path of the file we are dealing with)? I have index.php3 which include's an external php3 script("ext.php3"), and I need the 'ext.php3' script to get the full path of the main file it was