note 76813 deleted from reserved.variables by felipe

From: Date: Sun, 30 Dec 2007 18:28:00 +0000
Subject: note 76813 deleted from reserved.variables by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134369@lists.php.net to get a copy of this message
Note Submitter: From Under A Rock... ---- This small snippet will build the current script's url. No muss, no fuss: <?php $self_url = sprintf('http%s://%s%s', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == TRUE ? 's': ''), $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'] ); ?>

« previous php.notes (#134369) next »