Jump to content

Php Open A Zip File


Chikwado

Recommended Posts

I have try using code below to open a lumonous syntax highligt library but was not successfull

<?php $zip = zip_open(luminous-v0.7.0.zip);          zip_read($zip);                                  //Some code                                   zip_close($zip);                                  ?>
The code is not returning error or success, Can some one help explain more? Edited by Chikwado
Link to comment
Share on other sites

I don't see you turning error reporting on and I don't see where you are creating a new instance of ZipArchive. Also, how are you testing for success / failure of the open method?

http://php.net/manual/en/ziparchive.open.php

 

Also, your formatting (lack of returns between lines) makes your code hard to read. I would recommend you post with proper formatting so it's easier for other users to follow along.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...