当前位置:Gxlcms > PHP教程 > 两个Parseerror:syntaxerror,unexpectedT_VARIABLE异常

两个Parseerror:syntaxerror,unexpectedT_VARIABLE异常

时间:2021-07-01 10:21:17 帮助过:23人阅读

两个Parse error: syntax error, unexpected T_VARIABLE 错误
代码如下:

1. on line 3
include "Zip.class.php"
$z=new PHPZip(); //新建立一个zip的类

//方法一:

$z -> Zip("", "out1.zip"); //添加当前目录和子目录下的所有档案



//方法二:
/*
$files=array('1.txt','gb.txt');
$files[]='5.txt';
$z -> Zip($files, "out2.zip"); //添加文件列表
*/

//方法三:
/*
$z -> Zip("/usr/local/sext/", "out3.zip"); //添加指定目录
*/

?>


2.on line 3
include "ie.socket.php"
$temp=new HTTPs ('www.baidu.com');
$temp->getPage('/index.html');
echo $temp->getBody();
?>


------解决方案--------------------
include "ie.socket.php" ; //结尾分号

人气教程排行