Nordskjold Posted July 2, 2009 Share Posted July 2, 2009 Hey, I have for some time been working on a php gallery, and now i need to scan a dir and write all the jpg's from the dir to a .gz file.. The problem is that I've only succeeded writing strings.. $gz = gzopen('test.gz', 'w9'); $dir = opendir("test"); while (($file = readdir($dir)) != false) { if ($file == "." || $file == ".."); else { gzputs ($gz, $file); } } closedir($dir); gzclose($gz); In advanced, thank you Link to comment https://forums.phpfreaks.com/topic/164453-writing-files-to-gz/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.