Send header to browser with PHP [3/3]

If you want the user to be prompted to save the data you are Sending, such as a generated PDF file, you can use the Content-Disposition header to supply a recommended filename and force the browser to display the save dialog.

<?php
header
('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="document.pdf"');
readfile('document.pdf');
?> 
To Send authentication dialog to user use this code:

<?php
header
("WWW-Authenticate: NTLM");
?> 
Rate this tutorial:                    
- Send header to browser with PHP [3/3] -

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: web send header  creating emergency repair disk xp  checking window xp version  angry ip scanner tut  how to use virtualdub  active desktop transparent background  network scanner command line  coreldraw 3d bottun  How to allow remote network connection connection in mysql admin  plesk domains.exe show password