Reply to Re: Running php file as a background process

Your name:

Reply:


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
==================

[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

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