/    Sign up×
Community /Pin to ProfileBookmark

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.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 26.2012 — 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.
Copy linkTweet thisAlerts:
@BelrickJun 27.2012 — I dont think PHP is the right language for this.

Java?
×

Success!

Help @Tcobb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...