RE: [PHP] How do I display the script file name?

From: Date: Thu, 27 Feb 2003 15:42:08 +0000
Subject: RE: [PHP] How do I display the script file name?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137402@lists.php.net to get a copy of this message
> How can I display the script file name? Presumably something like-: > > <?php > echo $ScriptFileName; > ?> > > While I'm learning php and developing various Web page versions, I want to > be sure the that the display is from the appropriate script. > > Regards > Stephen Ford, Surrey, UK Try any of these to see if it is what you want - some are absolute some are relative ... <? echo $_SERVER['SCRIPT_NAME'].' '. $_SERVER['SCRIPT_FILENAME'].' '. $_SERVER['PHP_SELF']; ?> Rich

« previous php.general (#137402) next »