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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.