View Single Post
Old 05-07-2002, 01:10 PM  
FreeHugeMovies
Too lazy to set a custom title
 
Join Date: Dec 2001
Location: Charlotte, NC
Posts: 14,139
I uploaded 3 PHP files to my server. Here are the contents of each php file.

today.php

<?php
$today = date("n/j");
PRINT "$today";
?>


yesterday.php

<?php
$yesterday = date("n/j",time()-86400);
PRINT "$yesterday";
?>

2days.php

<?php
$twodays = date("n/j",time()-172800);
PRINT "$twodays";
?>

Now where I wanted the date I would put in this line of code in the html.

<!--#include file="today.php" -->

<!--#include file="yesterday.php" -->

<!--#include file="2days.php" -->


Works like a charm and I owe Jay a great thanks for his help!
FreeHugeMovies is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote