![]() |
|
[PHP] File Unziper - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: PHP (https://sinister.ly/Forum-PHP) +--- Thread: [PHP] File Unziper (/Thread-PHP-File-Unziper) |
[PHP] File Unziper - KaiT_AleX - 07-21-2011 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' ;
}
?>[PHP] File Unziper - KaiT_AleX - 07-21-2011 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' ;
}
?>RE: [PHP] File Unziper - slbmeh - 08-06-2011 (07-21-2011, 04:59 PM)KaiT_AleX Wrote: 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... RE: [PHP] File Unziper - 1234hotmaster - 08-06-2011 @slbmeh he can't explain what he doesn't know cause this is copy pasted
RE: [PHP] File Unziper - KaiT_AleX - 08-06-2011 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/ RE: [PHP] File Unziper - FrostByte_mybb_import5923 - 08-06-2011 even though this may be C&P'ed im gonna add to my souce code database site. Thanks for share RE: [PHP] File Unziper - slbmeh - 08-06-2011 (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... 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... RE: [PHP] File Unziper - The Alchemist - 08-15-2012 What happens if the zipped file is password protected? RE: [PHP] File Unziper - slbmeh - 09-03-2012 (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. |