【发布时间】:2011-12-02 08:31:14
【问题描述】:
这是我的代码:
<? php
$content = file_get_contents("http://aux.iconpedia.net/uploads/1337412470.png");
$fp = fopen("/test/image.jpg", "w");
fwrite($fp, $content);
fclose($fp);
?>
这是我得到的错误:
解析错误:语法错误,第 2 行 D:\Host\5164\html\maffick1\test\download.php 中的意外 T_VARIABLE
据我所知,当您错过分号或括号时会出现此错误。但我什么都试过了。
【问题讨论】:
-
此代码在
download.php中吗?请输入download.php的代码并标记行号。 2.