By including "\n" the html source looks like this, which is fine. I'll RTFM
about $_SERVER and post back if in trouble.
Thanks for help.
Stephen
$_SERVER['PHP_SELF']=
$_SERVER['SCRIPT_NAME'] (etc)=
__FILE__=/path/sfindex03.php
$SCRIPT_FILENAME=/path/sfindex03.php
Basename=sfindex03.php
--
I've checked up on strings, and it seems like the quoting is like the Korn
shell.
You can see below that I found basename() which works fine with __FILE__,
but $_SERVER['PHP_SELF'] etc print nothing. Any ideas?
Stephen
=PHP==
$_SERVER[\'PHP_SELF\']= '.$_SERVER['PHP_SELF']."";
echo '$_
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==
Line #1 ".' '.$_SERVER['PHP_SELF'], "";
echo "Line #2";
echo "Line #3";
echo "Line #4 ".'
Thanks
I'll post back with results.
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I display the script file name? Presumably something like-:
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
5 matches
Mail list logo