Display URL being viewed at...

PythonPython Forum LeaderThe Royal RAM
Ok... I have a script which is on domain1.com and in that script it echos $_SERVER.$PHP_SELF;

That is displaying the URL and file of where the script is being executed right...

Now what I want to do though is include this script into domain2.com but I want it to echo the url and filename of domain2.com


I might not be making myself clear but basically I want to display the url of the page being viewed instead of where the script is in fact being executed.

Thanks

The Royal Ram

Comments

  • gillygilly Junior Member Shared Hoster
    If i understand what your after i think you want to use this code.
    [PHP]$_SERVER;[/PHP]
  • PythonPython Forum Leader The Royal RAM
    I tried that already and it didnt echo anything... also ive read that HTTP_REFERER isnt very reliable because some browsers can diable refferers in their headers...

    The Royal Ram

Sign In or Register to comment.