PHP forking help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thamizhchelvan
Forum Newbie
Posts: 23
Joined: Tue May 08, 2007 2:50 am

PHP forking help

Post by thamizhchelvan »

Hi,

I need help on php forking. I have the following questions:

1] In which situation should I use php forking
2]

I have a script that extracts data from 300 sites, normally it would take 2 to 3 hours to finish, should I exeucte this script from a normal cron or should I use phpforking for this?

Thanks in advance
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP forking help

Post by Christopher »

If you want to run many processes in parallel, I would recommend doing that at the OS level. The PHP way is to use systems designed for each job, not reinvent the wheel.
(#10850)
Post Reply