Lesson Date scripts

Download for PC
(Premium Only - read more)

Download for Mobile
(Premium only - read more)

Download lesson notes
(Premium only - read more)

"Date scripts" are an internet marketer's best friend. What better way to get your visitors to act now than to give them a deadline? "Act now! This offer expires tomorrow!"

You can use a date script to generate a date automatically, without having to go into your HTML every day and change the date yourself. With a few easy tweaks you can make the script generate today's date, yesterday's date, tomorrow's date, or any number of days into the past or future.

This means that no matter when your visitor is looking at your site, the psychological effect of the date is the same. "Oh gosh, that's tomorrow!" or "Wow, this was updated today..."

Try pasting this snippet of code into your web page (make sure you're in "code" view if you're using a WYSIWYG editor):

<?php
echo "Order by ".date("jS F Y", mktime(0, 0, 0, 
date("m"), date("d");+3, 
date("y"));
?>

Save this as a .php file. Because it's a PHP file it's very likely that...

Log in to view the full lesson (or join free!)

Not a member yet? Joining Affilorama is free, and gives you access to our videos, tools, interviews and forum.
Become a member now »

Join


Enjoy this lesson? Save it, or Share it with the world!

bookmark it on delicious Digg it
Add to favorites

© 2006 - 2010 Affilorama Group Ltd. All Rights Reserved.