Im working on a project where you type in a youtube video link (eg. http://www.youtube.com/watch?v=qKpLtHw7IKQ) and it downloads the video to the same directory as the html.
I already have a shell script that i can run in terminal but now I need to set up a webpage where i paste the link and click a button and it downloads it. On the server side it should look like this: ./youtube-mp3 http://www.youtube.com/watch?v=qKpLtHw7IKQop
can any one help me with the html/php code? I’m new to html and php stuff.
You should use exec():