使用php读取图像在服务器托管中不起作用
我想问使用php读取图像在服务器托管中不起作用,php,codeigniter-3,Php,Codeigniter 3,我想问 $ im = imagecreatefrompng ($ file); header ('Content-Type: image / png'); imagepng ($ im); imagedestroy ($ im); 上面的代码在本地运行良好,但在宿主环境中不返回图像。有人知道为什么吗 谢谢。Whatget\u headers()/file\u exists()报告$file?你知道在codeigniter中创建这种函数吗?Whatget\u headers()/file\u e
$ im = imagecreatefrompng ($ file);
header ('Content-Type: image / png');
imagepng ($ im);
imagedestroy ($ im);
上面的代码在本地运行良好,但在宿主环境中不返回图像。有人知道为什么吗
谢谢。What
get\u headers()
/file\u exists()
报告$file?你知道在codeigniter中创建这种函数吗?Whatget\u headers()
/file\u exists()
报告$file?你知道在codeigniter中创建这种函数吗?