I need to write a php script that would
- accept a URL (i.e. www.mahmutabi.com/1.mp3
- download this file to a set location on the server it's running on
- turn the original file into a zip file that would reside in the same folder
- delete the original file.
how would I do that? the script is running on linux.. so I somehow need to instruct the script to run some system commands such as
but I don't know how to do that :(