Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

 
Reply to this topicStart new topic
> How Does One "turn On" A Website?
Glunn11
post Mar 4 2008, 12:36 PM
Post #1


Forum Regular
***

Group: Members
Posts: 214
Joined: 7-October 06
From: Idaho
Member No.: 88,911



Hello BC! Man, it's been a while since I've last posted. Anyways, I'm currently expanding my knowledge of website scripting and programming by working on my website for a little school-related radio project I've set up.
Before I do the one-hour show, I must first edit the HTML to
1. Say we are LIVE
2. Connect to the server since it is a shared hosting place

I would like to be able to do this without having to edit the source code on the page each time. Is this possible (I'm thinking PHP may be able to)? Thanks ;)
Go to the top of the page
 
+Quote Post
groovicus
post Mar 4 2008, 01:46 PM
Post #2


Hail Groovicus!
******

Group: Site Admin
Posts: 5,987
Joined: 5-June 04
From: Vermillion, SD
Member No.: 689



I am assuming by your question that you only want the website accessible at certain times during the day? And at all other times, not accessible? Does that mean not accessible at all? The only way you can do that is if you have access to the server. The server administration can allow or deny access to any of the websites it is hosting. Odds are that you do not have that sort of access though. If I were running a web-server, I wouldn't give anybody that acess.

The next option is to use PHP or something to dynamically create a web portal. When a user comes to the website, the php server checks to see what time it is and delivers the correct page based on the time. During normal operation, the user would get one page, during show times, a different page could be displayed, or some additional content on the main page, such as a link or something.

Alternatively, you could probably use javascript. Using the onload() function, one could use the javascript to see what time it is, and display one page or another, or add content to the main page not visible during normal hours.

The php way would be most useful if the hours of the radio show varied, because your PHP application could read from a simple text file to get the times that the show is to be broadcast. If you wanted to add, remove, or change times, all you would have to change was the text file. The downside is that you then need php capabilities on the server, and you need to code it in php.

The javascript way would work if the php option is not viable. Use an external .js page so that you do not have to alter your HTML.


--------------------
Go to the top of the page
 
+Quote Post
Glunn11
post Mar 4 2008, 06:16 PM
Post #3


Forum Regular
***

Group: Members
Posts: 214
Joined: 7-October 06
From: Idaho
Member No.: 88,911



Awesome, I think I should be able to roll with that. Thanks =)
Go to the top of the page
 
+Quote Post
Amazing Andrew
post Mar 5 2008, 12:15 AM
Post #4


Bleepin' Night Watchman
******

Group: BC Advisor
Posts: 1,762
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



Just be sure to include a <noscript></noscript> section for those of us who switch off javascript on most sites (like me).


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 10th October 2008 - 01:57 PM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.