iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2005, 01:22 PM
WebProWorld Member
 
Join Date: Jan 2005
Location: in orbit
Posts: 37
R2D2 RepRank 0
Default Daily changing startup(index)page

I have a site consisting of a few hundred html pages and I would like to rotate them so that a different one shows every day when somebody types in the url, something I believe is important for returning surfers. I wold like to program it in a simple way so I could say; on this day the "index page" will be aaa.html, on this day; bbb.html etc. What would be the best solution for this?
Reply With Quote
  #2 (permalink)  
Old 06-28-2005, 12:33 AM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default You could do this easy enough with...

You could do this easily enough with php and pulling the right page for the day. Or, look into scheduled includes.

IIS: Scheduled Includes

Apache: Couldn't locate it, but I'm sure I've done it in the past.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #3 (permalink)  
Old 06-28-2005, 07:16 AM
WebProWorld Member
 
Join Date: Jan 2005
Location: in orbit
Posts: 37
R2D2 RepRank 0
Default Thanks

Thanks for the info and link.

Do I understand it correctly that these are all server sided solutins, i.e. the server picks a page and designates it index.html for the day in a manner of speaking?

Is IIS, that looks like the most simple solutin, a part of the FrontPage package (FrontPage bot) or can it be purchased/used independantly?

Does the same apply as in coding by hand vs. WYSIWYG, in the sense that I might be better equipped to deal with glitches and bugs if I use apache or php rather than IIS?
Reply With Quote
  #4 (permalink)  
Old 06-28-2005, 01:11 PM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default We do it with...

We have a "Today Only" sale that just has items numbered 1 through 31. Depending on the day of the month, it just uses an include to call the correct file. I've done that in Perl, but it'd be easy enough to do with PHP, ASP, or any other scripting language.

The FrontPage extension is one way to handle it. Scripting is the other (the extension just handles the scripting for you.)

You could probably even modify a randomizer script to grab the file you want. There are plenty of those available for free if you do a search. It'd be different every time someone went to the site then.

Quite a bit will depend on what type of server you're hosted on and if you know any scripting languages enough to make it work.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #5 (permalink)  
Old 06-29-2005, 10:44 AM
WebProWorld Member
 
Join Date: Jan 2005
Location: in orbit
Posts: 37
R2D2 RepRank 0
Default

Thanks Brian. I worry that having a random page at every loading would be to mutch. I fear users would start hitting the reaload button, trying to see if they will get the same page twice, and crash the server and/or get bored and move on. One page a day would even it out and be more economical content wise. Or I dunno, thatīs for later. Now Iīll have to start digging around for scripting and IIS tutorials.
Reply With Quote
Reply

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

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

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



All times are GMT -4. The time now is 01:47 AM.



Search Engine Optimization by vBSEO 3.3.0