|
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.
Navigation:
[Reply to this message]
|