Doesn't look like the problem is with ffmpeg... the warning is about the use of the dl function. Multi-threaded PHP does not support dynamic loading of any PHP extension, so you'll need to make sure the .dll file for it is placed wherever the rest of your php modules live.
What you really need to figure out is why the extension doesn't load despite the fact you've got the "extension=php_ffmpeg.dll" directive in your php.ini. Usually you can see any startup errors in your apache error log (such as PHP saying it can't load a library). Also, have you taken a look at a phpinfo() and verified ffmpeg isn't present (shouldn't be since the extension_loaded returns false), but perhaps it's there under a different name (you could also use get_loaded_extensions() I suppose).
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off
这些是 php.ini 中的行。 确保 enable_dl 已关闭。 之后您将不会收到错误。
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off
These are the lines in php.ini. Make sure that enable_dl is turned off. After that you will not get error.
Download compiled dlls from here: http://sergey89.ru/files/ffmpeg-php-win32-all.zip
Extract and put php_ffmpeg.dll to you php ext folder
Put the rest of dlls to you windows/system32 folder
Restart apache and run phpinfo() - you should see the ffmpeg extension (btw you have to check php not apache error log if you are looking for errors wamp->php->php error log)
there is another step
Open php.ini file and find ; extension=msql.dll add after it extension=php_ffmpeg.dll
发布评论
评论(7)
将此行添加到您的 php.ini 文件中
add this line to your php.ini file
http://sergey89.ru/files/ffmpeg-php-win32-all。 zip
\wamp\bin\php\ext)
http://sergey89.ru/files/ffmpeg-php-win32-all.zip
\wamp\bin\php\ext)
看起来问题不在于 ffmpeg...警告是关于 dl 函数的使用。 多线程 PHP 不支持动态加载任何 PHP 扩展,因此您需要确保将其 .dll 文件放置在其余 php 模块所在的位置。
您真正需要弄清楚的是,尽管您的 php.ini 中有“extension=php_ffmpeg.dll”指令,但为什么扩展程序无法加载。 通常您可以在 apache 错误日志中看到任何启动错误(例如 PHP 表示无法加载库)。 另外,您是否查看过 phpinfo() 并验证了 ffmpeg 不存在(不应该存在,因为 extension_loaded 返回 false),但也许它以不同的名称存在(我想您也可以使用 get_loaded_extensions() ) 。
Doesn't look like the problem is with ffmpeg... the warning is about the use of the dl function. Multi-threaded PHP does not support dynamic loading of any PHP extension, so you'll need to make sure the .dll file for it is placed wherever the rest of your php modules live.
What you really need to figure out is why the extension doesn't load despite the fact you've got the "extension=php_ffmpeg.dll" directive in your php.ini. Usually you can see any startup errors in your apache error log (such as PHP saying it can't load a library). Also, have you taken a look at a phpinfo() and verified ffmpeg isn't present (shouldn't be since the extension_loaded returns false), but perhaps it's there under a different name (you could also use get_loaded_extensions() I suppose).
这些是 php.ini 中的行。 确保
enable_dl
已关闭。 之后您将不会收到错误。These are the lines in
php.ini
. Make sure thatenable_dl
is turned off. After that you will not get error.编辑
\wamp\apache\apache2.xx\bin\php.ini
- 添加行extension=php_ffmpeg.dll
而不是
编辑
\wamp\bin\php\ php5.2.9\php.ini
- 添加行extension=php_ffmpeg.dll
Editing
\wamp\apache\apache2.xx\bin\php.ini
- adding lineextension=php_ffmpeg.dll
INSTEAD OF
Editing
\wamp\bin\php\php5.2.9\php.ini
- adding lineextension=php_ffmpeg.dll
MirKo 是正确的,但我想
在从这里下载编译的 dll之后
还有一步
; 扩展名=msql.dll
在其后面添加
扩展名=php_ffmpeg.dll
MirKo is correct but i'll like to add that
after
there is another step
; extension=msql.dll
add after it
extension=php_ffmpeg.dll