Forum Moderators: coopster

Message Too Old, No Replies

PHP for pulling html pages and displaying as first page.

Floating frontpage.

         

webjourneyman

7:54 pm on Oct 15, 2005 (gmt 0)

10+ Year Member



It has been suggested by the javascript forum that I would be better served by a PHP script to daily pull a html page and display as the frontpage of my website.

Is this complicated to perform in PHP?

Bernard Marx, in the Javascript forum said I might need advice on headers,and that I should look at "the issue of caching downstream from your server."

Could anyone clarify?
All comments appreciated,

Webjourneyman

daneosporin

8:21 pm on Oct 15, 2005 (gmt 0)

10+ Year Member



Hi Webjournyman,
I'm not sure if this is what you are looking for, but you could try putting something like this on your front page:


<?php
$weekday = date("z");
if ($weekday = 1) {
@include "page1.html";}
if ($weekday = 2) {
@include "page2.html";}
?>

and continue to assign a page for all 365 days of the year.