|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-21 12:13 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 14:00:01 2025 UTC |
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?