> -----Original Message-----
> From: Alain Williams [mailto:[EMAIL PROTECTED]
> Sent: 17 July 2003 16:02
> 
> I recently upgraded from RedHat 9 supplied 4.1.2 to 
> from_the_net 4.3.2.
> I am running the command line version (#!/usr/bin/php) as a 
> .cgi rather than

CLI != CGI

> directly in apache as a module (with a .php suffix).
> 
> What I find is that the first line after #!/usr/bin/php needs to be:
>       Content-type: text/html
> 
> This used to be generated automatically, and still is in 
> apache module version.

and in the CGI version, but not the CLI one.
 
> The whole thing acts differently, phpinfo() generates text 
> output and not HTML.

CLI is a command-line interface version -- it's not designed to run in a Web
environment, so it's output is less "Webby" -- no HTTP headers, no
HTML-style messages.

For running as a CGI, you want the CGI version.

> 
> It seems as if the /usr/bin/php has decided that it is not 
> generating web output
> any more -- for some reason.
> 
> Is there a build/configure option that I can set to get the 
> original behaviour or
> a command line switch to specify 'html on' or something ? I 
> have looked but cannot
> find anything.

Re-read your installation instructions, and build yourself a CGI version
(sorry, I'd tell you how but I don't do *nix builds myself) -- then install
that as your CGI program.

The CLI isn't a CGI, and won't work properly as one.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to