deathdeyfer2002 Posted July 26, 2009 Share Posted July 26, 2009 I have searched the internet many times over and have tried many many different things but can't seem to get this working. I have created a PHP file that is currently using exec() to open up a VLC stream. On the PHP site I have found that "Note: If a program is started with this function, in order for it to continue running in the background, the output of the program must be redirected to a file or another output stream. Failing to do so will cause PHP to hang until the execution of the program ends." Yet I can't seem to code a solution. I believe that using Popen might work but I have no idea how to use it. Again I have tried a good 3 hours on this straight without much luck. using the exec command I can open up one process but I need the code to open up many processes.. Please Please Help. This has stumped many people and I really would like to find a solution. If my code will help in the troubleshooting let me know and I will be happy to post it. -Defyer Quote Link to comment https://forums.phpfreaks.com/topic/167544-popen-command-help/ Share on other sites More sharing options...
MadTechie Posted July 27, 2009 Share Posted July 27, 2009 Here is some thing you may find useful in this example we'll use HTTP to control our VLC process and VLM instances Quote Link to comment https://forums.phpfreaks.com/topic/167544-popen-command-help/#findComment-883585 Share on other sites More sharing options...
deathdeyfer2002 Posted July 27, 2009 Author Share Posted July 27, 2009 Yeah I saw that on the internet. That was going to be my Plan "B". I still am very stumped as to what I could use to start something as a background process in PHP? Quote Link to comment https://forums.phpfreaks.com/topic/167544-popen-command-help/#findComment-883884 Share on other sites More sharing options...
MadTechie Posted July 27, 2009 Share Posted July 27, 2009 maybe exec("command > nul"); Quote Link to comment https://forums.phpfreaks.com/topic/167544-popen-command-help/#findComment-883919 Share on other sites More sharing options...
deathdeyfer2002 Posted July 27, 2009 Author Share Posted July 27, 2009 Great though, Just tried that with many different variations.. No luck. program won't even launch. Quote Link to comment https://forums.phpfreaks.com/topic/167544-popen-command-help/#findComment-884022 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.