Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用php读取图像在服务器托管中不起作用_Php_Codeigniter 3 - Fatal编程技术网

使用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中创建这种函数吗?What
get\u headers()
/
file\u exists()
报告$file?你知道在codeigniter中创建这种函数吗?