Home  >  Article  >  Backend Development  >  两个Parse error: syntax error, unexpected T_VARIABLE 异常

两个Parse error: syntax error, unexpected T_VARIABLE 异常

WBOY
WBOYOriginal
2016-06-13 13:23:591182browse

两个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" ; //结尾分号

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn