Getting location bar and stripping file-ending of a string..
| From: | Aviv Revach | Date: | Mon, 12 Mar 2001 18:46:50 +0000 |
| Subject: | Getting location bar and stripping file-ending of a string.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43697@lists.php.net to get a copy of this message | ||
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 called from - 'index.php3'.
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?
Thank you in advance -
Aviv Revach
BRILLIANeT Website -http://www.brillianet.com/