Click to See Complete Forum and Search --> : Have to Start Somewhere


The Weldor
03-07-2009, 08:59 PM
I am looking for direction so if you can direct me (and I'm sure someone can) I thank-you in advance.

I am creating a web site that will be along the lines of what happened on this day, with 365 days. My question is how to have today's page open today and tomorrow's open tomorrow and so on and so on, automatically.

I've searched but I do not seem to be able to phrase the question in such a manner to even get close to a solution.

Again thanks for any help,
The Weldor

Charles
03-07-2009, 10:03 PM
It's a simple matter but the exact implementation will depend upon just what server side scripting you have available. PHP? Perl? Modula?

The Weldor
03-08-2009, 03:58 AM
I have;

CGI, PHP 5, RoR, Perl MySQL

Avaiable (will be using Host Gator).

I code my sites by hand and my knowledge extends thru (X) html, CSS, javascript. Have not worked with the server side yet, but up to learn.

Thanks
The Weldor

Charles
03-08-2009, 07:28 AM
The easiest way will be with PHP. Start with a simple INI file:0 = "The first day's content"
1 = "The second day's content" and name it something like "foo.ini" and give your calling page a ".php" filename extension. Then<?php
$days = parse_ini_file ("foo.ini");
echo $days[date("z")];
?> or something like it.

The Weldor
03-08-2009, 10:36 AM
Thank-you Charles, now I have a direction, learn some php with a starting point. Plus it looks like a fairly simple concept.