Re: [cgiwrap-users] another cgiwrap php question
Brought to you by:
nneul
From: Jack O. <ja...@he...> - 2001-08-30 22:20:26
|
Brian Allen wrote: > > ... "Invalid Header" error: > > [27/Aug/2001:13:04:32] failure (19812): for host sinclair.umuc.edu > trying to GET /cgi-bin/cgiwrap/ballen/hello.php, cgieng_scan_headers > reports: the CGI program /usr/local/ns-home/cgi-bin/cgiwrap did not > produce a valid header (program terminated without a valid CGI header. > Check for core dump or other abnormal termination) > > The hello.php script is very simple: > > #!/usr/local/bin/php > <html> > <body> > my first php script<P> > <? > echo "hello world<P>"; > $today = date( "l dS of F Y h:i:s A" ); > PRINT "today is $today."; > ?> > <body> > <html> > > My question is why would there be a header problem? There is no header > error when I run the php script without cgiwrap. I didn't see any > headers in the php script Jack Olszewski recently posted. Your script works for me alright under apache. There was the bang line in my script: #!/usr/local/bin/php > Another bit > of info (maybe related?) is I cannot figure out is why hello.php > produces the following odd output when it is run without cgiwrap: > > #!/usr/local/bin/php My first PHP script > > Hello World > > Today is: Thursday 30th of August 2001 12:39:17 PM. > > Why is that "#!/usr/local/bin/php" showing up in the output? It looks like being run in mod_php. -- Jack |