Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.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 GD库的问题_Php_Gd - Fatal编程技术网

Php GD库的问题

Php GD库的问题,php,gd,Php,Gd,当我在linux(我的笔记本电脑或web主机)中使用gd库时,它会显示 “形象”http://rssreader.ir/testcode2/index.php“无法显示,因为它包含错误 但是当我在windows上使用xamp时,我没有这个问题, 每个代码都会显示此消息,例如php.net gd库示例 我的问题在哪里?? 例如(我的web主机中的此文件)执行文件->另存为将脚本生成的内容保存到文件中,然后在文本编辑器中打开该文件。最有可能的情况是,脚本在生成数据之前发出了一些PHP错误/警告,导致

当我在linux(我的笔记本电脑或web主机)中使用gd库时,它会显示

“形象”http://rssreader.ir/testcode2/index.php“无法显示,因为它包含错误

但是当我在windows上使用xamp时,我没有这个问题, 每个代码都会显示此消息,例如php.net gd库示例 我的问题在哪里??
例如(我的web主机中的此文件)

执行文件->另存为将脚本生成的内容保存到文件中,然后在文本编辑器中打开该文件。最有可能的情况是,脚本在生成数据之前发出了一些PHP错误/警告,导致浏览器认为这是一个损坏的映像。

您可以看到(在linux上)以下方面的问题:


即,“GIF87”字符前有一个空行。因此,请在脚本中查找标记外的一些零散空格。

我检查了它,但该文件是真的
wget http://rssreader.ir/testcode2/index.php
cat index.php