Jump to content
The Uniform Server Community

One second delay in PHP pages only


tsalkakis
 Share

Recommended Posts

I have installed the latest Uniform Server in two PCs running Windows 7. The installation was quite similar to both PCs, using the default settings. The first PC ('Office PC') is running ok.

The problem is in the second PC ('Home PC'): When a PHP page is requested, there is always a one second delay, no matter how simple that page is.

 

Facts:

1. The delay appears only in .php pages, not in .html

2. Even if a .php page contains a simple HTML 'Hello world' without php code, the delay is still happening.

3. If I edit the httpd.conf and add the .html extension in the AddHandler application/x-httpd-php line, the delay is happening to .html files also.

4. The tests were performed by using the latest versions of Chrome and Firefox.

5. Using php.exe in a command line window to process the Hello world script, there is no delay.

6. When counting the PHP execution time by calling microtime(TRUE) in the beginning and in the end of the code, the reported time is in the range of a few milliseconds.

7. When displaying the Network tab in Developer Tools in Chrome while loading the Hello world php page, the times reported are: DNS lookup = 1 ms, Connecting = 3ms, Sending = 2ms, Waiting = 1.03s, Receiving = 1ms.

8. The delay is happening when the request URL starts with either http://localhost or http://127.0.0.1, given that the web browser is opening always in the same machine.

 

Any suggestions to try would be welcome.

Link to comment
Share on other sites

I have taken a look at this and was unable to reproduce the issue.

Perhaps someone else has come across this and has a solution.

 

All the best

Ric

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...