Hello everyone,
I am working through Kevin Yank’s book “Build Your Own Database-Driven Web Site”, and I ran into a problem with the deletejoke file, which has been previously documented:
At the suggestion of the forum members, I decided to uninstall PHP 5.2 and go with 5.3, according to the directions in the book as well as the updates/errata page for the book:
Now the server times out whenever I try to connect to the database. (Other aspects of PHP such as datetime and include files is working okay.) I’m not sure what the problem is.
When I was running PHP 5.2 previously, I could connect to the server all right, but launching deletejoke would cause the server to crash.
Here is the error message I am getting in my browser now:
================
Warning: mysqli_connect() [function.mysqli-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpmysql-4\chapter4\connect\index.php on line 2
Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpmysql-4\chapter4\connect\index.php on line 2
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpmysql-4\chapter4\connect\index.php on line 2