Jump to content

PHP Excute Server side Code


deathdeyfer2002

Recommended Posts

Hey,

 

Been searching for hours for a solution and have tried many different things.

 

Heres my problem:

 

I am trying to use Shell_Exec or Exec Or the backtick operator, or what ever else works to open up a server side program, VLC

 

$cmd = "/usr/bin/vlc --daemon -I http /home/deathdefyer2002/raid/moviez/$results[$x] --sout '#transcode{vcodec=h264,acodec=mp3}:duplicate{dst=std{access=udp,mux=ts,dst=$ip:1234}}}'";

`$cmd`;

 

 

I have this working but I can only get it to open it up once.

Once I run the script the first time, it starts up the stream without any trouble but if I try to run it a second time, it doesn't give me any errors nor does it run.  I think the problem is that the process is waiting for it to complete because if I log onto the server and KILL the process, I can then run the script one more time.  But I am unable to do anything else until I kill it again or I wait for the stream to finish.

 

Ideally, I would like to be able to run that script as many times as I want in order to start streams to multiple computers.

 

If you think the full source code will help, I can post that too. 

 

Please Help

-Deathdefyer

Link to comment
https://forums.phpfreaks.com/topic/166554-php-excute-server-side-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.