Facebook Twitter Reset

This Tutorial Has Been Viewed 1,404 Times.

Force download files using php

Hello guys here is a simple yet powerful script that allows you guys to force the users download some files with the dialog box Do you want to open or save the file, just copy paste the script below.

<?php header(“Content-type:application/octect-stream”);
header(‘Content-Disposition: attachment; filename=Test_Download_For_’ . date(‘Y-m-d’) . ‘.txt’);
print “This is the file you downloaded, Its easy rgt :) ”;
?>

DEMO

Thanks Guys

VN:F [1.9.13_1145]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
Force download files using php, 10.0 out of 10 based on 1 rating

Incoming search terms:

No comments yet.

Leave a Comment

Spam protection by WP Captcha-Free

Affordable Seo PackagesSeo BlogEdu Backlinks