Bug #17898 Updated: PHP path shown on browser

From: Date: Fri, 21 Jun 2002 16:13:43 +0000
Subject: Bug #17898 Updated: PHP path shown on browser
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11693@lists.php.net to get a copy of this message
ID: 17898 Updated by: sander@php.net Reported By: tyknight@writeme.com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Linux 2.4.17 PHP Version: 4.2.0 New Comment: Of coures it does! How should it know to ignore the #! line? It's just normal code. The CGI and CLI will ignore the first line of your script if you start it directly. Previous Comments: ------------------------------------------------------------------------ [2002-06-21 10:40:18] tyknight@writeme.com i run php as a CGI binary. I found that if i use "require" to import another php file, "#!/usr/local/bin/php" appears in the browser. For example : Case I ---------------------------- #!/usr/local/bin/php <? print "Hello World"; ?> ----------------------------- It works fine. Case II ---- index.php ------------------ #!/usr/local/bin/php <?php echo "Hello World!"; require("config.php"); echo "Hello World?"; ?> ----- config.php --------------------- #!/usr/local/bin/php <?php echo "In configure file"; ..... ?> ----------------------------------- The result is Hello World! #!/usr/local/bin/php In configure file Hello World? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17898&edit=1

« previous php.bugs (#11693) next »