PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<Migrating from PHP 2 to PHP 3Miscellaneous Questions>
view the version of this page
Last updated: Thu, 21 Aug 2003

Chapter 36. Migrating from PHP 3 to PHP 4

PHP has already a long history behind him : Legendary PHP 1.0, PHP/FI, PHP 3.0 and PHP 4.0.

1. Migrating from PHP3 to PHP4
2. Do sessions work in PHP 3?
3. Incompatible functions?

1. Migrating from PHP3 to PHP4

PHP 4 was designed to be as compatible with earlier versions of PHP as possible and very little functionality was broken in the process. If you're really unsure about compatibility you should install PHP 4 in a test environment and run your scripts there.

Also see the appropriate migration appendix of this manual.

2. Do sessions work in PHP 3?

Although native session support didn't exist in PHP 3, there are third-party applications that did (and still do) offer session functionality. The most common method was by using PHPLIB.

3. Incompatible functions?

Since PHP 4 is basically a rewrite of the entire PHP engine there was very few functions that were altered and only then some of the more exotic ones.



add a note add a note User Contributed Notes
Migrating from PHP 3 to PHP 4
van dot enckevort at hccnet dot nl
03-Sep-2001 07:22
[Ed Note:
You may also modify the AddType directives in httpd.conf rather than edit mime.types, which will accomplish the same thing:

AddType application/x-httpd-php .php .phtml .php3

--irc-html@php.net]
To use .php3 files with PHP4 in (at least) Apache edit your mime.types and comment out the php3 mime types and add php3 to the line reading:

application/x-httpd-php     phtml pht php

So it will read:

application/x-httpd-php     phtml pht php php3

Restart Apache to be sure it picks up the new settings.

<Migrating from PHP 2 to PHP 3Miscellaneous Questions>
 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST