photodow
02-27-2007, 11:32 PM
Hi there,
I am fairly new to the language PHP. I have been searching, and writing trying to get this script to work for about two weeks now to no prevail, and thats why I am asking you now. I started writing this script in Javascript, but I soon found out you cannot do SSI's.
Here is what I have so far, and hopefully it can give you an idea of what I want from it:
--------------------
<?php
$week = date(W)
$weekfile = array("class23.html","class456.html"...);
include($weekfile['$week']);
?>
--------------------
Now I am trying to take that script, and make it to where it includes a new .html file each Sunday. If not Sunday then Monday wouldn't be half bad either.
But any help is much appreciated, and if your having trouble understanding my question just ask me to elaborate a little more, and I'll do my best. Thanks for any help you can provide!
I am fairly new to the language PHP. I have been searching, and writing trying to get this script to work for about two weeks now to no prevail, and thats why I am asking you now. I started writing this script in Javascript, but I soon found out you cannot do SSI's.
Here is what I have so far, and hopefully it can give you an idea of what I want from it:
--------------------
<?php
$week = date(W)
$weekfile = array("class23.html","class456.html"...);
include($weekfile['$week']);
?>
--------------------
Now I am trying to take that script, and make it to where it includes a new .html file each Sunday. If not Sunday then Monday wouldn't be half bad either.
But any help is much appreciated, and if your having trouble understanding my question just ask me to elaborate a little more, and I'll do my best. Thanks for any help you can provide!