Page 1 of 1

Error when zipping

Posted: Wed Feb 27, 2008 11:12 am
by gretzky56
I get a Parse error: syntax error, unexpected ')', expecting '(' in xxx on line 43

When i run a php file that creates a zip file. Then line that the error ocures in is

Code: Select all

if ($zip->open($filename, ZIPARCHIVE::CREATE)!== TRUE) {
            exit("cannot open <$filename>\n");
        }
Now i have a test server on my computer that runs php 5 and the version on the server where my domain is the version is php 4. I guess that there is a problem there. Can anyone help in any way?

Re: Error when zipping

Posted: Wed Feb 27, 2008 11:18 am
by Christopher
Which is line 43? What code is before this code?

Re: Error when zipping

Posted: Wed Feb 27, 2008 11:21 am
by gretzky56
No need for help anymore. Fixed it. It was just a matter of php versions.

cheers