FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Script Unzip (very cool)

 


thaonguyenxanh
demo: http://hongnet.cwhnetworks.com/a
lang: vietnamese
user: admin_thuyen
pass: asyemdcxn
I will upload late[/url]
fyzika
thaonguyenxanh wrote:
demo: http://hongnet.cwhnetworks.com/a
lang: vietnamese
user: admin_thuyen
pass: asyemdcxn
I will upload late[/url]


Page not found.
Star Wars Fanatic
Yes, that would be very cool, except that the page isn't found.
And I can't read Vietnamese... Is there an English translation?
BlueVD
Working with zip in PHP is very easy...
Here's a small script I made while I was learning a bit of php zip magic:
Code:
$zip = new ZipArchive;
$result = $zip->open('test.zip');
echo "<pre>";
print_r($zip);

for ($i=0; $i<$zip->numFiles;$i++) {
   echo "index: $i\n";
   $arr=$zip->statIndex($i);
   if($arr['crc']!=0){
      print_r($arr);
   }
}

echo "</pre>";
$zip->close();

The crc check above is used to differentiate files from folders (folders in zip archive have CRC=0 since themselves aren't considered to be data, only the files contained within them).
Have fun.
unionz
Cool script Smile
is it only for zip file format ?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.