PHP language is an open source web scripting language which is included within HTML tags to implement any logic. And Due to popularity of PHP language many web hosting providers have started deploying PHP hosting servers which are actually called cPanel hosting servers to host a PHP website with MySQL to support database of a website. But because of some reason if you want to make any changes in your site so you can set the expiration to your site means after some date or year your site shows custom error on the page then you can add following code in index page below the “<?php” code and set the date as per your request.
$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”>
<h1>What you search</h1>
<p>Now Site is Expired </p>
<address>I have set the expiration to my site ,we need to increase expiration date in index page</address>
This is really simple which yu have to include in 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 Bodhost web hosting service provider is best from last decade for deploying quality server with up time guarantee and online security.
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.