Reply to Re: Running php file as a background process

Your name:

Reply:


Posted by Rob on 11/06/07 16:48

On Nov 6, 10:12 am, Ravi <Ravindrayep...@gmail.com> wrote:
> Hi to all,
>
> There is a start button in my page. if user clicks on that then a php
> program should start and should listen on a particular port. and also
> user should able to do other tasks on that page.
>
> Is there any way to run php file as background process. Or is there
> any to run multi thread in php.
>
> Regards,
> Ravindra.Y

Depending on the Operating System, I would use exec() to submit a
'cron' job running a php script to listen to the port.

I would then use a file or database to communicate between the two
applications.

If you are running Windows, you can use 'schtask' instead of cron, but
it depends if your host allows O/S commands or not.

Rob.

[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

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