Re: PHP4 Bug #1831: PHP4 as CGI parses itself
| From: | Brian Moon | Date: | Thu, 22 Jul 1999 16:26:05 +0000 |
| Subject: | Re: PHP4 Bug #1831: PHP4 as CGI parses itself | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8983@lists.php.net to get a copy of this message | ||
Typo there:
I placed the php3 binary in /usr/local/bin as php.
Brian Moon
-------------------------------------------------------------------------
Phorum Dev Team - http://www.phorum.org
Making better forums with PHP
-------------------------------------------------------------------------
----- Original Message -----
From: <brian@phorum.org>
To: <php-dev@lists.php.net>
Sent: Thursday, July 22, 1999 11:15 AM
Subject: [PHP-DEV] PHP4 Bug #1831: PHP4 as CGI parses itself
> From: brian@phorum.org
> Operating system: FreeBSD 3.0
> PHP version: 4.0 Beta 1
> PHP Bug Type: Performance problem
> Bug description: PHP4 as CGI parses itself
>
> PHP4:
> ./configure --with-mysql
> I placed the binary in /usr/local/bin as php4.
>
> Paralell to this I set up PHP3.0.11:
> ./configure --with-mysql
> I placed the binary in /usr/local/bin as php3.
>
> In httpd.conf I placed:
>
> ScriptAlias /php-cgi/ "/usr/local/bin/"
>
> AddHandler php4-script .php
> Action php4-script "/php-cgi/php4"
>
> AddHandler php-script .phtml
> Action php-script "/php-cgi/php"
>
> I created two files. One named info.phtml and one named info.php. In
both I put: <? phpinfo(); ?>.
>
> info.phtml gives normal php3.0.11 info.
>
> info.php gives:
>
> Parse error: parse error in /usr/local/bin/php4 on line 117
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>