Chris wrote:
Greetings PHP folks,
Which PHP function do I use if I want to achieve the following :
http://www.somesite.com/gallery/pics.php is the url...how do I get it to
read only http://www.somesite.com in the browser address bar without the
rest of the directory and filename appearing ?
If you're using php through a webserver then you might find it in one of
the $_SERVER variables (create a phpinfo page).
If you're not, then probably use parse_url: http://www.php.net/parse_url
The second way is probably better and more reliable.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php