Re: [PHP] URL output query

2006-02-27 Thread Chris

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



[PHP] URL output query

2006-02-27 Thread Chris
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 ?

Regards

--
Chris Blake 
Cell: 082 775 1492
Work: +27 11 880 2825
Fax : +27 11 782 0841
Mail: [EMAIL PROTECTED]

I do not care if half the league strikes. Those who do will encounter
quick retribution. All will be suspended, and I don't care if it wrecks
the National League for five years. This is the United States of America
and one citizen has as much right to play as another. -- Ford Frick,
National League President, reacting to a threatened strike by some
Cardinal players in 1947 if Jackie Robinson took the field against St.
Louis. The Cardinals backed down and played.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php