服务器需要安装wkhtmltopdf, $str = 'xvfb-run --server-args="-screen 0, 1024x768x28" wkhtmltopdf http://xyz..com/test.html test.pdf 2>&1'; exec($str, $out, $code);
服务器需要安装wkhtmltopdf, $str = 'xvfb-run --server-args="-screen 0, 1024x768x28" wkhtmltopdf http://xyz..com/test.html test.pdf 2>&1'; exec($str, $out, $code);
服务器需要配置FFmpeg,本人安装的版本:ffmpeg-5.1.1,配置的快捷命令:ffmpeg5 $videofile = "test.mp4"; $m3u8dir = str_replace(".mp4", "", $v )."/"; $m3u8file = $m3u8dir."index.m3u8"; if(!is_dir($m3u8dir)){ mkdir($m3u8dir,0777,true); system("chown -R www:www".$m3u8dir); } /** $str = 'ffm…
//data目录下file文件夹打包下载; $zip = new ZipArchive; $zipfile = "xyz.zip"; $savePath = "data/"; $dirName = "file"; $res = $zip->open($savePath .$zipfile, ZipArchive::CREATE); if ($res === TRUE) { //增加文件夹下多文件保持结构:注意文件夹存在 addFileToZip($savePath, $zip); $zip-&…