Almost Techy
<? header('Location: /'); exit; ?> This text has been put on the page by a PHP include. The text is actually on another page. Here's how you "include" it. <? include('http://simplysally.com/tut/PHP/phpinclude.html'); ?> <p>You are using <?php echo $_SERVER['HTTP_USER_AGENT']; ?><br> and coming from <?php echo $_SERVER['REMOTE_ADDR']; ?><br> Here's what it looks like on the page. You are using
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) <?php // Change this to the day in the future $day = 1; // Change this to the month in the future $month = 1; // Change this to the year in the future $year = 2016; // You do not need to edit below this line $days = (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400); echo "There are $days days until $day/$month/$year"; ?> Here's what it looks like on a page put in a table...
<?php $time = time(); //print date("m/d/y G.i:s", $time); print "<br>"; print "Today is "; print date("l dS \of F Y h:i:s A", $time); ?> Here's how it looks on the page. Today is Saturday 21st of December 2024 12:10:47 PM <?php $theDate = date("H"); if($theDate < 12) echo "Good morning to you"; else if($theDate < 18) echo "Good afternoon to you"; else echo "Good evening to you"; ?> Here's how it looks on the page. Good afternoon to you <?php echo "It is day " . date('z') . " of the year. "; ?> <?php $theday = date('z'); if($theday >= "79" && $theday <= "170") { $season = "Spring"; } elseif($theday >= "171" && $theday <= "264") { $season = "Summer"; } elseif($theday >= "265" && $theday <= "355") { $season = "Autumn"; } else { $season = "Winter"; } echo "It's " . $season . "!"; ?> Here's how it looks on the page. It is day 355 of the year. It's Autumn! Unzip it in the same directory as your page and put this at the bottom of your page you want counted. <img src="counter.php" height="1" width="1" border="0"> Consult the txt file for your count. |