The cart is empty

FAQ: Why is My Website Not Working on PHP 7?

Clients now have the option to choose between PHP versions 5.4 or 7.2 on our new web hosting servers. PHP 5.4 is stable, old, and well-established, while PHP 7.2 is newer and twice as fast. However, we are receiving reports from clients about functionality issues with their websites after upgrading to PHP 7.2.

Certain functions present in PHP versions 5.4 and 5.6 have been deprecated and removed in PHP 7.2. This primarily affects content management systems (CMS) that use mysql functions for database connections, which are no longer available. To resolve these issues, you should update your CMS and switch your database connections to mysqli or PDO.

For websites without CMS, the following changes are important:

  • Removal of mysql_* Functions: Use mysqli or preferably PDO instead.
  • Removal of mssql_* Functions.
  • Removal of ereg_ Functions.
  • Removal of set_magic_quotes_runtime Function.
  • Removal of mcrypt_ecb, mcrypt_cbc, mcrypt_cfb, mcrypt_ofb Functions.
  • Removal of preg_replace() Function.
  • And many others: For more details, refer to PHP RFC: Remove Deprecated Functionality in PHP 7.