Hi there,
I’ve got a site which was working great on a server with PHP 5.2; however, once we moved it to a new server with PHP 5.3 the site instantly choked.
It looks like this is due to a snippet that is calling a Zip Code Locator script that we bought from
Code322. The main file apparently uses ’ereg_replace’, which has been deprecated in PHP 5.3.
The problem is difficult because the code for this php file is encrypted and the author has stated that reverse engineering is prohibited. This is going to be a large commercial site, so I certainly want to stick to the book.
To further complicate things, when I run an ’example.php’ that was provided by the author, from the ’assets/files’ folder, it works fine. It is only when accessing through a snippet that the errors are thrown and the site breaks.
Any ideas or information would be greatly appreciated. Thank you.
- PHP Version 5.3.2-1ubuntu4.5
- Apache 2.2.14
- Mysql 5.1.41
- ModX 1.04