|
Posted by Jerry Stuckle on 11/06/07 12:01
Ravi 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
>
>
Hi, Ravindra,
You can't multithread in PHP. But if you have the authority, you can
start a PHP task in the background. How to do it depends on your OS.
However, you also have to watch your maximum execution time, or the
process will time out. Again, if you have the authority, you can change
this in your script.
I don't know of any shared hosting which will allow you to do this.
You'll need either a dedicated server or a VPS to do it.
I'm not sure PHP is the correct language to be doing this in, however.
Just what are you trying to do?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|