PHP code to set expiration for index page

PHP language is an open source web scripting language that is enclosed inside HTML tags to implement any logic. And several web hosting providers have started deploying PHP hosting servers that are actually known as cPanel hosting servers to host a PHP web site with MySQL to support database of a web site. However due to some reason if you wish to make any changes in your web site so you’ll be able to set the expiration to your site means that once some date or year your site shows custom error on the page then you’ll be able to add following code in index page below  “<?php” the code and as per your request set the date

$exp_date = “2012-04-31”;
$todays_date = date(“Y-m-d”);
$today = strtotime($todays_date);
$expiration_date = strtotime($exp_date);
if ($expiration_date <= $today)
{
echo ‘<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
<html>
<head>
<title>Expired…</title>
</head>
<body>
<h1>What you search</h1>
<p>Now Site is Expired </p>
<hr>
<address>I have set the expiration to my site ,we need to increase expiration date in index page</address>
</body>
</html>
exit;
}

This is really easy in which you have to include your index page to get the thing done at correct date but you need a quality web host to host your mission critical web site and web hosting service provider is best from last decade for deploying quality server with up time guarantee and online security.