Reply to Timer

Your name:

Reply:


Posted by scuniverse@gmail.com on 05/28/06 15:11

I've made a script that is called every hour from a cron web service,
the problem is that it takes like 50s to execute it and when I run it
manually (just by putting the url in the browser) it takes less than 1s
to execute it.

In this script there's a while loop and for testing proposes I included
a timer in it to see how much time each loop takes.

With the web cron service we have
[1] => 0.042862
[2] => 0.046418
[3] => 0.049904
[4] => 21.338746
[5] => 21.340762
[6] => 52.182604
[7] => 52.738617
[8] => 52.887804

Manually we have
[1] => 0.133298
[2] => 0.144081
[3] => 0.152357
[4] => 0.155286
[5] => 0.15921
[6] => 0.162126
[7] => 0.184527
[8] => 0.20398

The jump from the loop 3 to 4 and from 5 to 6 in the web cron is
constant and happens all the time, when I do it manually I don't see
anything like that.

Any ideas why it runs differently if using the web service and doing it
manually ?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация