You are here: Initiating cronjobs from PHP? « PHP « IT news, forums, messages
Initiating cronjobs from PHP?

Posted by Cabbar Duzayak on 08/17/05 02:54

Hi all,

I have a requirement for initiating tasks from my site that requires
long processing times, i.e. uploading/downloading some files to remote
nodes. And, to avoid timeouts and hence to be able to provide instant
responses to the user (user does not need to get the result right
away), I was thinking about handling this with cronjobs, i.e. when I
get this request, I will insert an entry into the crontab with exact
time information (which is like 2 minutes from current time) and
return the response to the user right away, and the task will be
invoked right away (again 2 minutes from that time) by the cron
daemon...

Do you think this is a viable approach? Can you guys recommend a
better way of handling this?

Thanks,

 

Navigation:

[Reply to this 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

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