|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-18 10:39 UTC] pgalan at cscamaras dot es
If I run the following example:
#!/usr/local/bin/php
<?
print "<br>Hello Word";
?>
I got the following result page:
#!/usr/local/bin/php
Hello World
The configure options are:
./configure --with-config-file-path=/usr/local/lib --disable-debug --enable-ftp --with-informix=$INFORMIXDIR --enable-t
rans-sid --with-pgsql=/usr/local/pgsql --with-mysql
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
I have solved it by making the changes recomended in bug id 9040. Locate the $PHP_INSTALL_PATH/sapi/cgi/cgi_main.c and make the following changes: *** sapi/cgi/cgi_main.c.origSun Dec 3 02:09:13 2000 --- sapi/cgi/cgi_main.cWed Jan 24 16:39:34 2001 *************** *** 719,725 **** return FAILURE; } file_handle.filename = argv0; ! } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) { /* #!php support */ c = fgetc(file_handle.handle.fp); if (c == '#') { --- 719,726 ---- return FAILURE; } file_handle.filename = argv0; ! } ! if (file_handle.handle.fp && file_handle.handle.fp!=stdin) { /* #!php support */ c = fgetc(file_handle.handle.fp); if (c == '#') {