home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / php.exe / display month as an image.php < prev    next >
Encoding:
PHP Script  |  2001-07-02  |  1.2 KB  |  37 lines

  1.     //**************************************
  2.     //     
  3.     // Name: display month as an image
  4.     // Description:This simply displays the 
  5.     //     current month as an image
  6.     // By: i hendry
  7.     //
  8.     // Returns:An image of the current moont
  9.     //     h
  10.     //
  11.     // Assumes:The images in this example ar
  12.     //     e in the same directory as the script . 
  13.     //     If images are placed in a sub-directory 
  14.     //     you have to alter the script. The images
  15.     //     can be downloaded from http://www.mywebr
  16.     //     esources.co.uk/php/monthimages.zip
  17.     //
  18.     //This code is copyrighted and has    // limited warranties.Please see http://
  19.     //     www.Planet-Source-Code.com/xq/ASP/txtCod
  20.     //     eId.338/lngWId.8/qx/vb/scripts/ShowCode.
  21.     //     htm    //for details.    //**************************************
  22.     //     
  23.     
  24.     <?php
  25.     //images are availabe from 
  26.     //http://www.mywebresources.co.uk/php/mo
  27.     //     nthimages.zip
  28.     //or you can use your own
  29.     //example at http://www.mywebresources.c
  30.     //     o.uk/php/monthpic.php
  31.     //get month in textual format . i.e Jan 
  32.     //     , Feb
  33.     $month = date("M");
  34.     //display month as an image
  35.     echo "<img src = \"$month.gif\">";
  36.     ?>
  37.