I am new to this BIG forum and have a question about PHP and ZEND.
We are running the web host comparison speed project where web hosts are ranked on their speed.
One of the tests we use is a 100kb PHP file that is uploaded to the servers of the competing web hosts. The script calculates the time it takes to load the file.
We are encountering very fast results on web hosts that have optimized their servers with Zend.
Can anyone give me advice wether these speed results (that are 100 to 1000-fold faster than average) are accurate page load results? Do these results reflect the real page load time or does Zend just calculate and report the time it takes to execute the script?
Your question is a bit obscure. What exactly happens? Do you run a 100kg script that uploads a file? Do you run an entirely different script to upload a 100kb garbage php file? Do u upload a 100kb php script that u then run that in turn uploads a file from somewhere else?
It is a script with a PHP header, a PHP bottom and a body contains 100kb of plain text.
In the PHP header the page load time is set at 0. As soon as the bottom of the page is reached on a load in an internet browser the PHP script at the bottom knows how fast the bottom was reached. The time it took to load is reported to our speed project.
On Zend optimized servers the time to reach the end of the file is 100-fold to 1000-fold faster than on a server with regular PHP.
My questions are:
- Is the result with Zend the real page load time or is it just reporting the time it takes to execute the PHP script.
- Does Zend preload the complete file and then execute it?
- If it is the page generation time, how can I force the PHP script to withstand this preload?