phpeeps Posted June 9, 2010 Share Posted June 9, 2010 I am making a download page for my multimedia work and want to be able to have the link actually ask for a download rather than play the media type. What is the best way (or code example) to do this? I thought maybe having it zip up first would be right but am not sure... Link to comment https://forums.phpfreaks.com/topic/204244-making-a-link-zip-and-download/ Share on other sites More sharing options...
sspoke Posted June 9, 2010 Share Posted June 9, 2010 http://php.net/manual/en/book.zip.php http://www.php.net/manual/en/zip.examples.php Link to comment https://forums.phpfreaks.com/topic/204244-making-a-link-zip-and-download/#findComment-1069734 Share on other sites More sharing options...
phpeeps Posted June 11, 2010 Author Share Posted June 11, 2010 Thanks, I have tried a few and get this: Fatal error: Class 'ZipArchive' not found in /nfs/c03/h01/mnt/48952/domains/yazizle.com/html/clients/=/zippy.php on line 3 Do I need to import a class in the code? Or does it reside in the PHP process already? Any additional examples of a zip-and-download script are graciously accepted Link to comment https://forums.phpfreaks.com/topic/204244-making-a-link-zip-and-download/#findComment-1070643 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.