I have a linux VPS which is running ubuntu 8.04
I want to execute some command to the terminal, for doing that i use system() or exec() function.
The functions are working properly at localhost, but aren't working properly on the VPS.
Let's say, i have a command :-
youtube-dl http://www.youtube.com/watch?v=ZMhMZ8Ciyxw -o /home/video.flv
This command downloads the video's flv
I use following code in my php code
system('youtube-dl http://www.youtube.com/watch?v=ZMhMZ8Ciyxw -o /home/video.flv');
This should work properly. The command is executed in terminal but i do not receive the output as desired.
There are no error messages, just output from terminal which comes before the actual downloading of the video starts.
Any help would be really appreciated.