PHP4 port won't output Content type when run as CGI script

Roman Neuhauser neuhauser at bellavista.cz
Wed May 7 07:29:57 PDT 2003


# gaml at buz.ch / 2003-05-07 15:26:59 +0200:
> I installed PHP 4.3.1 from the ports wanting to use the PHP
> interpreter in CGI mode. However, there is something weird going on:
> in past versions, this worked without any changes to the scripts
> (maybe add #!path to php at the beginning if it wasn't already there)
> but the current version for some weird reason won't output any content
> types anymore which is more than just a nuisance considering that no
> PHP scripts have provisions for doing this themselves.

    are you sure you're using CGI, not CLI?
    determine that by running `php -v`.

    example:

    roman at freepuppy ~ 1002:1 > ./install/php/php-4.3.2RC1/sapi/cli/php -v    
    PHP 4.3.2-RC1 (cli) (built: Mar 22 2003 02:52:56)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

    roman at freepuppy ~ 1003:1 > ./install/php/php-4.3.2RC1/sapi/cgi/php -v
    PHP 4.3.2-RC1 (cgi), Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html


More information about the freebsd-questions mailing list