Skip to content

Instantly share code, notes, and snippets.

@saltun
Created February 10, 2015 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saltun/651d732e628363fcff1c to your computer and use it in GitHub Desktop.
Save saltun/651d732e628363fcff1c to your computer and use it in GitHub Desktop.
check ffmpeg
<?php
$extension = "ffmpeg";
$extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
$extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
if(!extension_loaded($extension)) {
dl($extension_soname) or die("Can't load extension $extension_fullname\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment