www.webdeveloper.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    342

    Creating Independent Processes

    Hello--

    I'm not sure if its really even possible with PHP, but is there any way to start independent processes that will essentially be independent of the PHP script?
    The context in which this would happen would be the CLI, not as a server script. For example, the program would start up an instance of FireFox and would proceed to run and terminate, but the instance of FireFox would still be in existence after that.

    Is there any way to do this? Any help would be appreciated.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,039
    In Linux you could probably do it via a shell_exec() call to the "nohup" command, which you would then use to launch the desired program as a background process. Not sure how you would do that in Windows.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Apr 2010
    Posts
    223
    I dont think PHP is the right language for this.

    Java?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles