Hi
I want to give user a facility to download content so how can I do it using php
I want to give user a facility to download content so how can I do it using php
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="book.pdf"');
// The PDF source is in original.pdf
readfile('book.pdf');
Comment