>>MarcusLingl.net/tech

VersionTracker


The last 10 Mac OSX updates


» Click'n View - 1.3

» Baseball Statbook - 1.3.1

» Chirp - 2.1.3

» Album Cover Finder - 3.4.9

» Calico Panorama - 0.7

» TubeTwist - 1.0

» RecoverTrasher - 1.1

» Mummy Maze Deluxe - 1.1.1

» Mopis - 1.2

» VertiBevel - 2.0





MacSlash


Headlines






Mac OS X Hints


The latest hints


» Omit photos with a given keyword in iPhoto 5

» Use folder aliases for data burn in Toast Titanium

» An AppleScript to open iTunes videos in QuickTime

» Save search results in 10.3

» Set up a Belkin wireless print server

» URLwell - Temporary URL storage via the menubar

» Manage an iPod Shuffle via the Finder and python

» Archive Mail.app email with Gmail

» Lossless adjusting of loudness for MP3 and AAC files

» Add firewall rules via the Terminal





Sourceforge


Last 5 releases


» Unstable 2.0.10-RC1 released (gramps)

» seashore code Seashore 0.1.8 released (The Seashore Project)

» Roundtable ROUNDTABLE SEASON1 CD04.ISO released (Osprey Networks - Free Radio Content)

» Roundtable ROUNDTABLE SEASON1 CD03.ISO released (Osprey Networks - Free Radio Content)

» seashore binaries Seashore 0.1.8 released (The Seashore Project)




Right-click This!

Britney Calendar Image

PHP

Mar 09, 04 | 11:06 pm

On my other blog, I implemented a super-quick script to display the current image that coincides with my Britney Spears calendar right above the update calendar.

First things first, I had to scan all 12 images from the calendar. I saved each image with it's corresponding three letter month name (i.e., Jan, Feb, etc) and the extension .jpg.

Then, at the top of the page, I assign the current three letter month name to a variable called $calmonth, by including this line:


<?php $calmonth=date(M); ?>


Using the PHP date functionML with M produces the three letter month name.

Wherever I want my Britney image to appear, I put the following:


<img src="path/to/image/directory/<?php echo $calmonth; ?>.jpg">


Whola! Britney all year-round!

Resources:
PHP Date Function


</marcus>

 |  link







 

Links/Nav


Categories

» Apple (0)
» Gallery (0)
» Howto (2)
» Linux (0)
» MacOSX (6)
» MacXM (0)
» Misc Other (0)
» PHP (3)
» pMachine (2)
» Shareware (0)
» Tutorial (0)


Previously Posted

The Archives

Search The Archives

Stuff...

Links



 
 

Powered by:

Powered by pMachine

MySQL

PHP


.Mac