开发者

Want A Solution for Automated Job in PHP?

I want to make a script with PHP . My script has to activate clients accounts.

My first function will grab all login details of clients from the admin panel mostly 100 login开发者_运维技巧 or more .

Next I have to go a third party site and login with my client user name and password after they will give a link and I have to grab that link and get the activation code .

After that I have to put the activation code and submit.

All I want to know how can i make this thing automated and queue based. I can make the script but I want a queue system in this script.

After getting no. of job from admin panel it starts doing the job but i have to run 10 or more jobs simultaneously (in parallel) and if any jobs complete it starts another like in IDM (Internet Download Manger). After doing all jobs it will grab a new login from admin and start jobs and so on.

I know about cron but in there I have to command from the cpanel not in php I think something like start cron from php and stop but parallel jobs is also important.

Thanks. Please help me.


If you are using Zend Server have a look at zend job queue feature.

It has all the cron possibilities + full logging.


ok ! i tried it and seems like a table and queue will good option . ia m using mysql_multi to have parallel connection to a page which do the process in that scae i donot need multithreading but doing parallel process !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜