note 31969 added to function.parse-url

From: Date: Sun, 11 May 2003 03:21:56 +0000
Subject: note 31969 added to function.parse-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-47828@lists.php.net to get a copy of this message
To determine the url to your site, regardless of the php.ini situation use the "super global" $_SERVER as follows: $url = "http://".$_SERVER['HTTP_HOST']; // will return: http://www.yoursite.com FYI: the $_SERVER array contains a lot of cool stuff. To see all of the stuff $_SERVER has: print_r ($_SERVER); -- http://www.php.net/manual/en/function.parse-url.php http://master.php.net/manage/user-notes.php?action=edit+31969 http://master.php.net/manage/user-notes.php?action=delete+31969 http://master.php.net/manage/user-notes.php?action=reject+31969

« previous php.notes (#47828) next »