NYCPHP Meetup

NYPHP.org

[nycphp-talk] Checking if a program is installed

Web Scribble - Alexey Gutin alexey at webscribble.com
Wed Dec 19 12:51:54 EST 2007


Hi Everyone,

 

I am trying to check if a program is installed on the server through PHP. In
particular, FFMPEG. In Linux, I can just run "ffmpeg", and the shell will
throw an error if it isn't found. The same happens in Windows.

 

Is there a way I can figure out if FFMPEG is installed on the server
(Windows or Linux)?  I know I can try something like shell_exec(), but it
doesn't seem to work too well if the command isn't found.

 

Thanks,

Alexey

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071219/ce5ebc7c/attachment.html>


More information about the talk mailing list