PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
header("Content-type: text/plain"); //here you will have to mention the file type
header("Content-Length: 1024"); // this is the filesize
header("Content-Disposition: attachment; filename=test.php"); // filename is the name you want to store the file
//as.It can also be any other name
include 'test.php'; // this is the file that you want to download
?>
this is a static script which works fine....then why should not the earlier one work???