Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2003 16:29:37 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
Cc:        questions@freebsd.org
Subject:   Re: PHP4 port won't output Content type when run as CGI script
Message-ID:  <20030507142937.GS12792@freepuppy.bellavista.cz>
In-Reply-To: <86871511640.20030507152659@buz.ch>
References:  <86871511640.20030507152659@buz.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
# gaml@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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030507142937.GS12792>