Welcome Guest ( Log In | Click here to Register a free account now! )
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.![]() ![]() |
Mar 4 2008, 12:36 PM
Post
#1
|
|
![]() Forum Regular ![]() ![]() ![]() Group: Members Posts: 214 Joined: 7-October 06 From: Idaho Member No.: 88,911 |
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 ;) |
|
|
|
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. -------------------- |
|
|
|
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 =)
|
|
|
|
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).
-------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 10th October 2008 - 01:57 PM |