note 101328 deleted from reserved.variables.server by danbrown

From: Date: Fri, 10 Dec 2010 17:11:47 +0000
Subject: note 101328 deleted from reserved.variables.server by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174777@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- To get the current base URL, using server variables, I use: function getCurrentBaseUrl() { return 'http'.((isset($_SERVER['HTTPS']))?'s':'').'://'. $_SERVER['SERVER_NAME']. (($_SERVER['SERVER_PORT']!=80)?':'.$_SERVER['SERVER_PORT']:'').'/'; }

« previous php.notes (#174777) next »