Successfully changed our osc shops to php 5 over the weekend.
The following instructions may be of use
Upgrade to php 5
Ask support to turn register globals on
1. add to .htaccess
Action php5-script /interpreters/php5-script
AddHandler php5-script .php
2. admin/includes/classes/upload.php
find line 31 $this = null;
change to // $this = null;
3. admin/includes/languages/english.php
add to bottom of file
include_once("english/index.php");
4. Open notepad copy text below and create file php5fix.php in catalog/includes
<?php
// PHP5 Fix by Steve Kamerman,
Steve Kamerman's Blog
$phpversion = explode('.', phpversion());
if((int) $phpversion[0] >= 5){
// PHP 5 has no idea what this crap is
$HTTP_GET_VARS = &$_GET;
$HTTP_POST_VARS = &$_POST;
$HTTP_REQUEST_VARS = &$_REQUEST;
$HTTP_SESSION_VARS = &$_SESSION;
$HTTP_COOKIE_VARS = &$_COOKIE;
$HTTP_SERVER_VARS = &$_SERVER;
$HTTP_FILES_VARS = &$_FILES;
$HTTP_ENV_VARS = &$_ENV;
}
?>
5. catalog/includes/application_top.php
add to top of file just below Released under the GNU General Public License
*/
// PHP5 fix
require_once("includes/php5fix.php");
6. catalog/admin/includes/application_top.php
add to top of file just below Released under the GNU General Public License
*/
// PHP5 fix
require_once("../includes/php5fix.php");
Above instructions credit to
Steve Kamerman's Blog
osCommerce Community Support Forums