Linux Tutorials - Herong's Tutorial Examples - v5.37, by Dr. Herong Yang
Migrate Old Scripts to New PHP Release
Provides a tutorial example on how to migrate old PHP scripts to PHP new releases.
If you are running old PHP scripts on a newer release of the PHP engine, you may see many errors, because some modules or functions are deprecated or removed. Here is a list of them of their replacements.
eregi('...', ...); --> preg_match(('/.../i', ...); mysql_*() --> mysqli_*() date(): ... not safe ... --> date_default_timezone_set('Europe/Paris');
Table of Contents