marcus Posted July 31, 2007 Share Posted July 31, 2007 Is it possible to use PHP to extract ONLY the files names from a ZIP file? Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/ Share on other sites More sharing options...
Asperon Posted July 31, 2007 Share Posted July 31, 2007 not sure but your dev-tuts website isn't working and on your neoblob site...that flash has the activate border around it...here is an IE fix for that... put this code under your embed tag <script language="javascript" src="fix.txt"></script> and here is the fix.txt file [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312318 Share on other sites More sharing options...
marcus Posted July 31, 2007 Author Share Posted July 31, 2007 Dev-Tuts.com isn't mine, it's what I previously designed for them. Eh, I could care less about the flash activation. But, I'd rather appreciate if my original question was answered Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312321 Share on other sites More sharing options...
Asperon Posted July 31, 2007 Share Posted July 31, 2007 I'm still looking into it, not sure myself Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312322 Share on other sites More sharing options...
calabiyau Posted July 31, 2007 Share Posted July 31, 2007 Just grabbed this off the website...looks like what you want to do <?php $za = new ZipArchive(); $za->open('test_with_comment.zip'); print_r($za); var_dump($za); echo "numFiles: " . $za->numFiles . "\n"; echo "status: " . $za->status . "\n"; echo "statusSys: " . $za->statusSys . "\n"; echo "filename: " . $za->filename . "\n"; echo "comment: " . $za->comment . "\n"; for ($i=0; $i<$za->numFiles;$i++) { echo "index: $i\n"; print_r($za->statIndex($i)); } echo "numFile:" . $za->numFiles . "\n"; ?> http://ca3.php.net/zip Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312324 Share on other sites More sharing options...
marcus Posted July 31, 2007 Author Share Posted July 31, 2007 What is that supposed to do? Fatal error: Cannot instantiate non-existent class: ziparchive in /home/neoblob/public_html/hypertext/pref.php on line 2 Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312326 Share on other sites More sharing options...
calabiyau Posted July 31, 2007 Share Posted July 31, 2007 Well I didn't dig too deep into it, just grabbed it off php.net...follow the link and read all about it. If you are doing this at home, do a php_info and make sure the ZIP classes are enabled on your server. You may have to do that first before it will work. Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312330 Share on other sites More sharing options...
calabiyau Posted July 31, 2007 Share Posted July 31, 2007 there are lots of examples down the page. I'm sure one of them will work for you. Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-312337 Share on other sites More sharing options...
marcus Posted August 2, 2007 Author Share Posted August 2, 2007 ^^ Link to comment https://forums.phpfreaks.com/topic/62749-is-this-possible/#findComment-313640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.