如何把这个:
WWW_ROOT."images".DS."uploaded_files".DS."research".DS. $pdfname;
在这个
里面 exec("convert -scale 1500x1000 " . escapeshellarg(BASE_URL."app/webroot/images/uploaded_files/research/${dirname}/img%d_".$pdfname.".png"));
替换 BASE_URL。“app / webroot / images / uploaded_files / research / $ {dirname} /
答案 0 :(得分:0)
这有什么问题:
$path = WWW_ROOT."images".DS."uploaded_files".DS."research".DS. $pdfname.".png";
exec("convert -scale 1500x1000 " . escapeshellarg($path));
你试过吗?