Re: How do I display the script file name?

From: Date: Thu, 27 Feb 2003 17:07:47 +0000
Subject: Re: How do I display the script file name?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-137424@lists.php.net to get a copy of this message
. is a string concatenation operator. ' or " are strings. Read http://www.php.net/manual/en/language.operators.string.php By the way, __LINE__ is available in addition to __FILE__. Hope that helps, Jason k Larson Stephen Ford wrote:
Partial success. The code and output are shown below. There are no errors. What does the ".' '." do pls. Have tried a variety of combinations to see the effect. Nothing to see... :-( ===PHP============== <?php echo "<P>Line #1 ".' '.$_SERVER['PHP_SELF'], "</P>"; echo "<P>Line #2</P>"; echo "<P>Line #3</P>"; echo "<P>Line #4 ".' '.$_SERVER['SCRIPT_NAME'].' '.
     $_SERVER['SCRIPT_FILENAME'].' '.
     $_SERVER['PHP_SELF']."</P>";
echo "<P>Line #5</P>"; echo "<P>Line #6 ", __FILE__,"</P>"; ?> ===IE6 display=============== Line #1 Line #2 Line #3 Line #4 Line #5 Line #6 <Pathname removed for security> ================== Stephen


« previous php.general (#137424) next »