Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

ZIP File PHP Code Script

DZone's Guide to

ZIP File PHP Code Script

·
Free Resource
// ZIP File PHP source code script credits devco.net

//download this function first - http://uk2.php.net/manual/en/ref.zip.php



  add_dir("incl/");
$zipfile->add_file($filedata, "incl/zipfile.inc.php");
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=zipfile.zip");
echo $zipfile->file();
?>



Credits: 4DLink Web Lists and Web 4 link
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}