php - The server at www.localhost.com is taking too long to respond -
A very strange thing is happening I'm running a script on a new server (this is on my current server and laptop Works).
The strange thing is that when I increase the memory limit to 1024m (only)! It's going to extract a large zip file and go through the files, so I thought it was normal. Instead of ending this script or ending with errors, I get an error from my browser:
The server at www.localhost.com is taking too long to respond.
Localhost.com? The web server is just localhost: 9090
and I can see that Apache is still running, maybe Apache crashes horizontally and this server can not be found? Nothing about Apache crashing in log files.
This is not a server issue, it is more so with my PHP script and memory usage, so there is no need to go to server fault.
What could be the problem? I can narrow the cause, I am in loss here!
The server is a Windows server that runs Apache 2.2 with PHP version 5.3.2.
Be sure that,
Ini_set ('display_errors', 'on'); Ini_set ('error_reporting', E_ALL); Ini_set ('max_execution_time', 180); Ini_set ('memory_limit', '1024MB');
I will pop it in the top of the script and see what happens. This should show you errors and likes.
Secondly, have you checked Fopen
and the path of the file that is being loaded?
ABS said,
The files being checked can be allowed by PHP (especially on Windows OS Multi With users)
Comments
Post a Comment