how to fix osCommerce and php 5.3.* problem

The problem is php 5.3.* deprecated some functions.
so when you run osCommerce on php 5.3.* it gives warnings.

you can find deprecated functions here:

there is two ways to fix this.
1. replace all the deprecated functions with
equivalent alternative one (the hard way)
replace eregi("[regex]", $str) with preg_match("/[regex]/i", $str)

2. disable deprecated warning from php.ini file.
set error reporting value to this: error_reporting = E_ALL & ~E_DEPRECATED

3. use php 5.2.*

Popular Posts