Linux Apps Tutorials - Herong's Tutorial Examples - v1.02, by Herong Yang
Migrate Old Scripts to New PHP Release
This section 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