Twice the same program, at frih.net takes 35-40 sec, at clv.nl it takes 3-4 sec.
Basically does this: reads a external php result, writes it to a temp file with minor changes, decides the extra reads to request (max 40 times, std like 10-15 times), finally reads the temp file again with minor changes, displays the result at the clients side.
Is the writing of the temp file monitored? Other things slowed down on purpose?
For now somewhat disappionted, of course.
I'm not sure as to what might be causing this, but there is no deliberate throttling mechanism that has been implemented at FRIHost.
Is the script accessing data from external network ? In that case, the slow-down could be caused by latency or address resolution.
Perhaps you could debug the script and narrow down to the part of the code or function that is taking the most time.
I have no idea why it takes so long. Probably a different server configuration.
Maybe that script is the only thing running on the other server, while here a lot of websites are running?
Or maybe because our server is located in the USA and yours in the Netherlands? If your script needs a lot of accesses to files in the Netherlands, then maybe this might cause such a delay.
mOrpheuS, Thank you for your answer!
Each call to my external resource takes about 0.8 seconds as an average. That is: I echo the result of php function time() just before and after the outgoing call. 36 out of 46 calls that are processed show a difference of 1 second (between .5 and 1.5 sec).
So it must be those calls, the rest of the program runs 'in no time' (always a difference of 0).
On the other server the same source code runs much faster.
If my external source starts like this, it can't be address resolution or name resolving, can it?
Maybe it is a matter of our bandwidth against the other server's?
Bondings, I wrote the above before I read your reply.
I think you must be right! For these extravaganzas I should try and find a nearby and more dedicated server. Even then FriHost is a great testing site. THANKS.
you can try gzipping your php files via .htaccess
That is new to me, Swizzy. What content would the .htaccess have, in case files are named one.php and two.php?