This tutorial will show you how to send header to the browser with PHP.
Headers is the first part of http communication which receive client web browser. To send header use:
![]() |
||||||||||||||||
|
|
Send header to browser with PHP
This tutorial will show you how to send header to the browser with PHP.
Headers is the first part of http communication which receive client web browser. To send header use:
<?php
If you want to send header for redirecting the browser use this:
<?php
For sending 'missing page' header try this:
<?php
PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser. Many proxies and clients can be forced to disable caching with:
<?php
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
To send authentication dialog to user use this code:
<?php
|
Need a specific tutorial? Do not hesitate and submit a request! |
||||||||||||||
|
Home | Sitemap |
Terms & Privacy
© ONLINEHOWTO.net 2006-2010 |
||||||||||||||||
posted on 2010-Apr-10 | 06:25:41 AM