WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2004, 06:21 AM
WebProWorld New Member
 

Join Date: Oct 2004
Location: London
Posts: 6
amkma RepRank 0
Default Script to keep website on 9 to 5

Hi Everybody,
I am new to PHP and Java scripts.
I want to make my website available to members for a particular time.
Lets for example, I want that the page to be available to members for 9 am till 5 pm Monday to friday. Is it possible to write some secure Login script for implement these things.

I will be really thankful if someone could help.
Reply With Quote
  #2 (permalink)  
Old 10-08-2004, 06:53 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Why not open for 24 hours?

Hi amkma,

Welcome to WebProWorld!
Quote:
Originally Posted by amkma
I want that the page to be available to members for 9 am till 5 pm Monday to friday.
Hmmm... why limit a login to just 9 to 5, Monday to Friday? Opening hours of 7 days a week, 24 hours a day is surely a better option? Anyhow, a few brief thoughts... where will your visitors be coming from? Will they all necessarily be in the same timezone? Are you going to be using GMT as your set time? Will you allow users to adjust the time settings to their own timezone.

Javascript would not be suitable (IMO), as it's mostly used client-side, and would take the time from the visitor's computer (not from your website). So the solution would require server-side programming, ASP, PHP, etc... I'm sure one of our many experts could come up with something for you. They may require some form of recompense, we shall see! :o)

Paul
Reply With Quote
  #3 (permalink)  
Old 10-08-2004, 07:24 AM
WebProWorld New Member
 

Join Date: Oct 2004
Location: London
Posts: 6
amkma RepRank 0
Default Re: Why not open for 24 hours?

Quote:
Originally Posted by paulhiles
Hmmm... why limit a login to just 9 to 5, Monday to Friday? Opening hours of 7 days a week, 24 hours a day is surely a better option? Anyhow, a few brief thoughts... where will your visitors be coming from? Will they all necessarily be in the same timezone? Are you going to be using GMT as your set time? Will you allow users to adjust the time settings to their own timezone.

Javascript would not be suitable (IMO), as it's mostly used client-side, and would take the time from the visitor's computer (not from your website). So the solution would require server-side programming, ASP, PHP, etc... I'm sure one of our many experts could come up with something for you. They may require some form of recompense, we shall see! :o)

Paul
Thnks Paul for detailed reply.
Yes I want to use serverside time, using GMT, and the visitors will be my students. I want them to get access only between 9 to 5 monday to friday, only and it will be secure login. As I will be giving them complete priviledge to that particular webpage.
and that time will be for them only. I myself want to login 24/7.

thanks
Reply With Quote
  #4 (permalink)  
Old 10-09-2004, 04:06 AM
WebProWorld New Member
 

Join Date: Oct 2004
Posts: 18
Amitkrathi RepRank 0
Default Re: Script to keep website on 9 to 5

Using PHP is secure.

use function <?=gmdate("H");?> in php to get hours & compare with 9 to 5. Your can display another page if time doesn't fall between 9-5

Amit Rathi
http://www.babynology.com

Quote:
Originally Posted by amkma
Hi Everybody,
I am new to PHP and Java scripts.
I want to make my website available to members for a particular time.
Lets for example, I want that the page to be available to members for 9 am till 5 pm Monday to friday. Is it possible to write some secure Login script for implement these things.

I will be really thankful if someone could help.
Reply With Quote
  #5 (permalink)  
Old 10-15-2004, 04:19 PM
WebProWorld New Member
 

Join Date: Oct 2004
Location: USA
Posts: 1
vladimir54321 RepRank 0
Default

You can use one of the external monitoring services. For example:
http://www.dotcom-monitor.com will do such checking.
Reply With Quote
  #6 (permalink)  
Old 10-15-2004, 05:05 PM
WebProWorld New Member
 

Join Date: Mar 2004
Location: Victoria, British Columbia
Posts: 15
trippleweb RepRank 0
Default

PHP is the definite answer, www.codewalkers.com would be a good start.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0