Jump to content

Show website at a specific date and time...


indiodoido

Recommended Posts

hi...

 

I've created a new site, and its going to be online in September.

Until then, i would like to have online a simple countdown that will display the time left until that day, and when we reach that date the new web page would appear automatically.

 

Can anyone help me?

Link to comment
Share on other sites

it is not safe to have the website accessible before it goes public anyway, it doesn't matter that there will be no link to the other pages they can still be found by luck or patience. Just have the site off the server or protect it using .htaccess (if on Apache) and if you want the site to go public automatically just add a cron job and run a script that will do it...

 

And the count down must be made with JavaScript or any form of client side scripting...

 

Kathas

Link to comment
Share on other sites

Perhaps write a simple script to include at the top of the pages.

 

e.g

$openat = mktime(1,0,0,9,1,2007); // 1 AM, September 1st, 2007 read more at php.net/mktime
$javascript = "<br>
<script type=\"text/javascript\">
//put some code here for javascript countdown.
</script>
";
if(time()<$openat){
die("The website will open on: " . date("M d Y",$openat) . $javascript);
}

Link to comment
Share on other sites

Or.... just create a generic html page with javascript that says page will be online at this time. Keep the real site offline and then just upload it before that date... take down the generic index page and let the live site chug when you're ready.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.