Aight I'll make this short and sweet, what I would like to do is make a web based interface to mpg321 on FreeBSD using mod_perl OR USING PHP.

I WILL NOT be streaming the mp3s to another program, I just basically want to make a web-based frontend to mpg321.

I think I have everything figured out EXCEPT how to RE-establish communication with mpg321 AFTER a script has finished running and I run it again. For instance, we run the PHP / Perl script once, it runs and starts mpg321, and tell is to play a song. The script ends. Now,I want to run it again and tell mpg321 to STOP playing hte song, or to play another song, or pause, or etc., etc.

Problem is, I don't know how to re-establish communication with that process to be able to send input to it THE SECOND TIME THE SCRIPT RUNS. Does anyone know how?

    Write a Reply...