Advertisement
Guest User

gridview

a guest
Sep 27th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.                             $current_url_all = explode( "/", (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
  3.                             end($current_url_all);
  4.                             $current_url_date = prev($current_url_all);
  5.  
  6.                             if ( $timestamp = strtotime($current_url_date) !== false ) {
  7.                                 $d = new DateTime( $current_url_date );
  8.                                 _e($d->format('F'),'holidayge');
  9.                             } else {
  10.                                 _e(date('F'),'holidayge');
  11.                             }
  12.                         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement