Two Parseerror: syntaxerror, unexpectedT_VARIABLE error codes: 1. online3 & lt ;? Php use methods include & quot; Zip. class. php & quot; $ znewPHPZip (); create a zip class Method 1: $ z-& gt; Zip (& quot; & qu two Parse error: syntax error, unexpected T_VARIABLE error
The code is as follows:
1. on line 3
Include "Zip. class. php"
$ Z = new PHPZip (); // Create a zip class
// Method 1:
$ Z-> Zip ("", "out1.zip"); // add all files under the current directory and subdirectory
// Method 2:
/*
Using filespolicarray('1.txt', 'gb.txt ');
Using files000000000000'5.txt ';
$ Z-> Zip ($ files, "out2.zip"); // add a file list
*/
// Method 3:
/*
$ Z-> Zip ("/usr/local/sext/", "out3.zip"); // add a specified directory
*/
?>
2. on line 3
Include "ie. socket. php"
$ Temp = new HTTPs ('www .baidu.com ');
$ Temp-> getPage ('/index.html ');
Echo $ temp-> getBody ();
?>
------ Solution --------------------
Include "ie. socket. php"; // end with a semicolon