HTTP Headers in PHP
HTTP Headers in PHP
You can add headers to the HTTP response in PHP using the Header() function. Since the response headers are sent before any of the actual response data, you have to send these headers before outputting any data. So, put any such header calls at the top of your script.
Redirection
<?php header('Location: http://www.php.net'); ?>
Setting a Last-Modified Header
<?php
header('Last-Modified: '.gmdate('D, d M Y H:i:s',getlastmod()).' GMT');
?>
Avoid all Caching
<?php
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: Mon,13 Jal 1980 05:00:00 GMT');
?>
Do you know:-
- How to Retrieve data using dataset in c#
- “Login failed for user” SQLConnection using C#
- How can I prevent the browser back button After Logout
- Calendar Control in c# Windows Application
- Timer tick event in c# windows application
- How to delete record in c# using the connected approach
- [Connect] to Database c# Through Code
- The Command Class | C# | TrickCode
- C# DataReader ADO.NET |Trickcode
- What is disconnected data access?
- how to Adding Parameters to Commands
- SQL Basics?
- What is Database Preparation?
- SQL vs NoSQL or MySQL vs MongoDB
- What is the data provider in C#?
- What is connection string C#?
- [SQL] SELECT Statement | Example
- how to get return value from stored procedure in sql server
- how to prevent sql injection attacks
- What is Database? What is SQL?
- C#.Net How To: Send email in asp.net using c#
If you like the tutorial, then please share this tutorial with your friends on social media.
Peace, mercy and blessings of God be upon you.
ReplyDeleteDo you need long-term or short-term loans at a relatively low interest rate? We provide financial loans to individuals and companies. Available now: personal loans, commercial loans. This is an opportunity for ...More:Email:stiwartbenard83348@gmail.com
and many more at 2% interest rate; Contact us via email: whatspp Email: stiwartbenard83348@gmail.com
ReplyDeleteMr. Stiwart Benard