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?
Moderator: General Moderators
Code: Select all
<?
$url = "http://" . $HTTP_HOST . $SCRIPT_NAME;
?>Code: Select all
<?php $url = "http://" . $_SERVERї'HTTP_HOST'] . $_SERVERї'PHP_SELF']; ?>