Login Register


[PHP] File Unziper filter_list
Author
Message
[PHP] File Unziper #1
PHP Code:
<?php $zip = new ZipArchive ; $res = $zip -> open ( 'my_zip_file.zip' ); if ( $res === TRUE ) { $zip -> extractTo ( 'my_extract_to_dir/' ); $zip -> close (); echo 'ok' ; } else { echo 'failed' ; } ?>
[Image: 1308031172619.gif?w=356&h=140]
Don't learn to hack, hack to learn.

Reply

[PHP] File Unziper #2
PHP Code:
<?php $zip = new ZipArchive ; $res = $zip -> open ( 'my_zip_file.zip' ); if ( $res === TRUE ) { $zip -> extractTo ( 'my_extract_to_dir/' ); $zip -> close (); echo 'ok' ; } else { echo 'failed' ; } ?>
[Image: 1308031172619.gif?w=356&h=140]
Don't learn to hack, hack to learn.

Reply

RE: [PHP] File Unziper #3
(07-21-2011, 04:59 PM)KaiT_AleX Wrote:
PHP Code:
<?php $zip = new ZipArchive ; $res = $zip -> open ( 'my_zip_file.zip' ); if ( $res === TRUE ) { $zip -> extractTo ( 'my_extract_to_dir/' ); $zip -> close (); echo 'ok' ; } else { echo 'failed' ; } ?>

The only thing different from the PHP manual's example of the ZipArchive class is the failed message provides an error message and the filename/directory is changed.

If you're going to repost can you please cite your source... and in this case... you should comment it and explain what is going on...

Reply

RE: [PHP] File Unziper #4
@slbmeh
he can't explain what he doesn't know Tongue cause this is copy pasted Smile
Pierce the life fibers with your drill.

Reply

RE: [PHP] File Unziper #5
hotmaster what you know about me ?Yes this is only code that i have c/p it...
But i know php and i know to explain that! -.-.
And if you don't trust me look at this :
http://imageshack.us/photo/my-images/847/phpresult.png/
[Image: 1308031172619.gif?w=356&h=140]
Don't learn to hack, hack to learn.

Reply

RE: [PHP] File Unziper #6
even though this may be C&P'ed im gonna add to my souce code database site. Thanks for share
[Image: 6caf54.gif]

Reply

RE: [PHP] File Unziper #7
(08-06-2011, 12:05 PM)KaiT_AleX Wrote: hotmaster what you know about me ?Yes this is only code that i have c/p it...
But i know php and i know to explain that! -.-.
And if you don't trust me look at this :
http://imageshack.us/photo/my-images/847/phpresult.png/

Not saying that I don't believe you... but two things about that test...

1. Your proof is a screenshot of an HTML file... HTML is really easy to manipulate your results...

2. It is a 20 question test. I took it real quick to see how much it could possibly test in 20 questions... It pretty much verifies that you know what PHP looks like... it went over very few functions... didn't cover any OOP concepts (Your example was OOP)... such as classes, inheritance, overloading, etc...

Reply

RE: [PHP] File Unziper #8
What happens if the zipped file is password protected?

Reply

RE: [PHP] File Unziper #9
(08-15-2012, 01:06 PM)The Alchemist Wrote: What happens if the zipped file is password protected?

PHP's zip libraries do not support password protected zip files.

Reply







Users browsing this thread: 1 Guest(s)