I have a site which is hosted on a dev site for demonstration to the client, and everything works without problem. However, when I download the files and database to my local EasyPHP installation, I receive the following error:
Fatal error: Maximum execution time of
30 seconds exceeded in C:\Program
Files (x86)\EasyPHP-5.3.4.0\www\PC
Estimating\classes\database.class.php
on line 23
The database details for the connection are correct, as the Database object is already used on part of the template before this error is shown.
My question is, why does the system work fine on a live server, but not on EasyPHP?
You should check the max_execution_time setting in the php.ini files on your server and on your local installation.
btw… what is done in line 23 ?
Copied from my comment to make it easier to find the solution:
some things really runs slower on windows… while on mac/unix the php connects to mysql using a file socket while it should use tcpip in windows. Try using “127.0.0.1” instead of “localhost” when connecting to the db