Jump to content

My PHP files are very slow


Recommended Posts

Hello,

 

I have two webhosts on the same server (www.knoth.nl). I've got a weird problem though. When I try to create a PHP file which establishes a socket connection between the server and another server, it's very slow on one of then. It takes approx 15 seconds to connect to the site, and return the data. The other webhost works FINE, and returns the data within 2 seconds. The slow one is using PHP version 5.2.1, and the fast one is using PHP version 4.4.7 (My hosting company installed them, when I bought them).

 

As an example, I made a PHP file which establishes a socket connection with a site which shows the weather forcast (It's Dutch though) and it also shows the time it took to load the page.

http://darkool.nl/weer.php

http://mightscript.com/weer.php

 

I have NO idea what the problem is. I don't think it's the server, since they're both on the same server.

 

For more PHP info of those sites:

http://darkool.nl/phpinfo.php

http://mightscript.com/phpinfo.php

 

Thanks in advance,

Patrick.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.