Re: Missing $GLOBALS SCRIPT_URI

From: Date: Sat, 19 Feb 2005 21:03:29 +0000
Subject: Re: Missing $GLOBALS SCRIPT_URI
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-209073@lists.php.net to get a copy of this message
It turns out that SCRIPT_URI is a mod_rewrite global. I simply had to turn the RewriteEngine On under the unencrypted (http) location and it worked perfectly. Thank you for the suggestions. Respectfully, Gary pete M wrote:
try $_SERVER['SCRIPT_URI']; Gary C. New wrote:
I am writing some php code that requires the $GLOBALS['SCRIPT_URI'] variable. When I access the code under its encrypted (https) location it is available without issue. However, when I try to access the code under its unencrypted (http) location it is not available. In fact, phpinfo() shows that there are a lot less $GLOBALS available under the http location than there are under the https location. I am using Apache 1.39 with Php 4.2.3. Your comments are greatly appreciated. Respectfully, Gary


« previous php.general (#209073) next »