Cannot Detect Current URL - hep me! hep me!
Posted: Sat Oct 12, 2002 12:52 pm
The first part of my script doesn't seem to be running:
When the variable is echoed, the output is 'http://'
What could be causing this to not detect the host and script and place it into the variable? ( I know it's simple, but the simple things seem to be the most frustrating.. no?
)
Code: Select all
<?
$url = "http://" . $HTTP_HOST . $SCRIPT_NAME;
?>What could be causing this to not detect the host and script and place it into the variable? ( I know it's simple, but the simple things seem to be the most frustrating.. no?