|
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!
|