Andrew Banman wrote:
> I have an Appache server with PHP successfully
> installed (or seems to be anyway) and I wish to use an
> older application that was written for PHP3. Is there
> a way to use the PHP3 files with PHP4? It seems to
> execute url.php just fine but just spits PHP code to
> the browser when I try url.php3
>
> Suggestions for a newbee?
In your httpd.conf :
# setting of php4 ( compat with php3 )
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
or
when you compile and install php4 :
----------------------------------------------------------------------------
USING PHP 3 AND PHP 4 AS CONCURRENT APACHE MODULES
Recent operating systems provide the ability to perform versioning
and
scoping. This features make it possible to let PHP 3 and PHP 4 run as
concurrent modules in one Apache server.
This feature is known to work on the following platforms:
- Linux with recent binutils (binutils 2.9.1.0.25 tested)
- Solaris 2.5 or better
- FreeBSD (3.2, 4.0 tested)
- IRIX64 6.5
To enable it, configure PHP 3 and PHP 4 to use APXS (--with-apxs) and
the
necessary link extensions (--enable-versioning). Otherwise, all
standard
installations instructions apply. For example:
$ ./configure \
--with-apxs=/apache/bin/apxs \
--enable-versioning \
--with-mysql \
--enable-track-vars
----------------------------------------------------------------------------------
INSTALL ( documentation of php4 )
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]