NYCPHP Meetup

NYPHP.org

[nycphp-talk] Checking if a program is installed

Ben Sgro ben at projectskyline.com
Wed Dec 19 12:56:06 EST 2007


http://us2.php.net/manual/en/function.is-executable.php

FFMPEG was a PITA to setup for me.

Got it working though, converting .wmv's to .flv.

Web Scribble - Alexey Gutin wrote:
>
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php



More information about the talk mailing list