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

 About This Book

 Introduction to Linux Systems

 Process Management

 Files and Directories

 Running Apache Web Server (httpd) on Linux Systems

Running PHP Scripts on Linux Systems

 Install and Manage PHP Packages on CentOS

 "php -i" - Dump PHP Environment Information

 Install and Manage PHP Modules on CentOS

 Files Used in PHP "include" Statements

 Publish PHP Scripts on Apache Web Server

 Dump PHP/Apache Environment Information

 Change PHP Configuration Settings

 Apache PHP file_put_contents() Permission Denied

 SELinux Security Context on /var/www/html

Migrate Old Scripts to New PHP Release

 Running MySQL Database Server on Linux Systems

 Running Python Scripts on Linux Systems

 Conda - Environment and Package Manager

 GCC - C/C++ Compiler

 Graphics Environments on Linux

 SquirrelMail - Webmail in PHP

 Tools and Utilities


 Full Version in PDF/EPUB