Cant get ffmpeg-php to work

Discussion in 'PHP' started by zyklon, Aug 8, 2009.

  1. #1
    I installed it and all but when i run this code:
    <?php
    $extension = "ffmpeg";
    $extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
    $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
    
    
    // load extension
    if(!extension_loaded($extension)) {
        dl($extension_soname) or die("Can't load extension $extension_fullname\n");
    }
    ?>
    
    PHP:

    i get this error:

    Can't load extension /usr/lib/php/extensions/no-debug-zts-20060613/ffmpeg.so

    i knew it was installed in: /usr/local/lib/php/extensions/no-debug-zts-20060613/ so i copied ffmpeg.so to that spot, and it still didnt work.
     
    zyklon, Aug 8, 2009 IP
  2. zyklon

    zyklon Active Member

    Messages:
    274
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    fixed myself. please close.
     
    zyklon, Aug 8, 2009 IP