I¡¡want to write a php program to control files downloading. not use the mothed of file link.
Someone told me that I could send head information to the browers,then use function:readfile send the content to browers.
the following is the program:
<?
header("Content-Type: application/msword ");
header("Content-Disposition: attachment; filename=new.doc");
header("Content-Description: PHP3 Generated Data");
readfile("/home/website/success.doc");
?>
( I tried it, but didn't work)
anybody can give me a antetype of this type of program?
How can I write the "open-save-cancel" link in PHP?
Where can I find the resource of header of http?
Thanks.