When trying to execute the following snippet
zip_open($full_file_path);
The script returns “zip_read() expects parameter 1 to be resource, integer given”
Advertisement
Answer
Solution:
1) Double check your path and file permissions
2) Make sure ZIP is valid (sometimes happens with 3rd party generated archives)
3) Echo out the integer returned by the zip function and lookup the code online