The 'magic constant' __FILE__ is one way.

<?PHP
echo __FILE__;
?>

or even better:

<?=__FILE__;?>

HTH,
Jason k Larson


Stephen Ford wrote:
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







-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to