Group: php.dev · Group Profile · Search for PHP Scripting in php.dev
Author: Alan Jones
Date: May 14, 2007 16:36
...: I am just wondering if there is a PHP function that returns the file name or domain name of where the file/script is located that called the PHP script in question? Thanks in advance. $_SERVER used with one of several reserved variables will ...$_SERVER['PHP_SELF'] Here's how you might use it... <?php if ($_SERVER['PHP_SELF'] == '/index.php') {include('signature...
|