在Modx Revolution中,我试图让phpthumb从我正在编写的片段中工作 - 我想我几乎拥有所有部分,但我有预感,也许我没有格式化图像文件路径正确。
这是我的代码:
$input = "http://www.domain.com/assets/files/".$cover;
$width = 610;
$height = 504;
$options = "w=$width&h=$height&zc=1";
$thumb = $modx->runSnippet("phpthumbof",array('input' => $input, 'options' => $options));
如果我注释掉最后一行,页面加载时没有错误,但是没有注释我收到错误而没有别的:
无法显示图像“http://www.domain.com/”,因为它 包含错误。
但是如果我回显$ input的值,那么会给出图片网址,所以我假设phpthumb不需要URI字符串......?
我做错了什么?