从PHP执行wkhtmltoimage挂起
从PHP执行wkhtmltoimage时,它只是挂起从PHP执行wkhtmltoimage挂起,php,symfony,exec,wkhtmltoimage,Php,Symfony,Exec,Wkhtmltoimage,从PHP执行wkhtmltoimage时,它只是挂起 $command = 'wkhtmltoimage --format "png" "' . $url . '" "' . $output . '"'; exec($command); 它将一直挂起,直到PHP超时 我可以直接从CLI运行相同的命令,并且运行良好。 我也尝试过: 添加2>&1和>num2>&1 使用shell\u exec和反勾号 将exec包装在批处理文件中并调用EXIT/B 0 我尝试改用Symfony进程,但出现以下
$command = 'wkhtmltoimage --format "png" "' . $url . '" "' . $output . '"';
exec($command);
它将一直挂起,直到PHP超时
我可以直接从CLI运行相同的命令,并且运行良好。
我也尝试过:
- 添加
和2>&1
>num2>&1
- 使用
和反勾号shell\u exec
- 将exec包装在批处理文件中并调用
EXIT/B 0
Qt: Untested Windows version 6.2 detected!
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
从CLI运行它会产生相同的Qt:检测到未测试的Windows版本6.2代码>消息,但仍会生成图像。从PHP运行它不会生成图像
你知道如何让wkhtmltoimage从PHP开始工作吗