imagemagick 不起作用
我无法使 imagemagick 工作..
编辑
CHMOD 设置为 777
我找到了错误日志.. 没有报告有关 imagemagick 的错误.. 我只是编了一个错误来检查它是否正确error.log - 它是...
[Thu Nov 03 14:47:49 2011] [error] [client 94.145.177.221] PHP Notice: Use of undefined constant sd - assumed 'sd' in /var/www/_im.php on line 24
这是代码
$base = $_SERVER['DOCUMENT_ROOT'].'/';
$src = $base.'invoice.pdf';
$dst = $base.'invoice.png';
$syntax = '/usr/local/bin/convert -debug coders -log "%u %m:%l %e" '.$src.' '.$dst;
echo $syntax;
exec($syntax);
is_file($src)
返回 true
I can't make imagemagick work..
edit
CHMOD is set to 777
I found the error log.. no error concerning imagemagick is reported.. I just made up an error to check if it was the correct error.log - and it was...
[Thu Nov 03 14:47:49 2011] [error] [client 94.145.177.221] PHP Notice: Use of undefined constant sd - assumed 'sd' in /var/www/_im.php on line 24
Here is the code
$base = $_SERVER['DOCUMENT_ROOT'].'/';
$src = $base.'invoice.pdf';
$dst = $base.'invoice.png';
$syntax = '/usr/local/bin/convert -debug coders -log "%u %m:%l %e" '.$src.' '.$dst;
echo $syntax;
exec($syntax);
is_file($src)
returns true
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您无法找到您的网络服务器/虚拟主机
错误。 log
这通常可以帮助解决一些问题:(除了它也通过 safe_mode 和 open_basedir 进行阻塞。但是你会发现 PHP 警告,除非你关闭了它们。)
If you are unable to locate your webservers/vhosts
error.log
this can oftentimes help to figure out some problems:(Except it's blockend via safe_mode and open_basedir as well. But you would have found out with a PHP warning, unless you had turned them off.)
您应该使用
-debug coder
(而不是 coder-s)调用convert
。You should call
convert
with-debug coder
(instead of coder-s).