PHP Classes

PHP What Happened Today: Extract events that happened today from CSV file

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 298 This week: 1All time: 7,430 This week: 571Up
Version License PHP version Categories
happened-today 1The PHP License5.0PHP 5, Time and Date, Tools, Parsers
Description 

Author

This class can extract events that happened today from CSV file.

It can parse a CSV file and extract the dates of past events.

The class can traverse the list of event and check if there is any one that match today's date. It returns the year of the matching event.

Innovation Award
PHP Programming Innovation award nominee
January 2015
Number 9
Some sites present information about events that happened in the same day of today in past years.

This class implements that feature in PHP using CSV files to retrieve the past events that it may show for the same day of today.

Manuel Lemos
Picture of Amer Hendy
  Performance   Level  
Name: Amer Hendy <contact>
Classes: 4 packages by
Country: Egypt Egypt
Age: 35
All time rank: 211820 in Egypt Egypt
Week rank: 420 Up5 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
//////////////////////////////////////////////////////////////////
/// HAPPENTODAY LUNIX EGYPT ///
/// version :1 ///
/// author :Amer Hendy - TROJAN ///
/// Location:EGYPT ///
/// SITE:fb.com/amerhendytrojan ///
//////////////////////////////////////////////////////////////////
 
include"class.php";
 
$htd=new htd();
 
$htd->comma=";";
  print
"<H1>What happen today?</H1>";
 
print_r($htd->view_today());
?>


  Files folder image Files  
File Role Description
Files folder imagexml (1 file)
Plain text file class.php Class the class of script
Plain text file index.php Example home to see the events

  Files folder image Files  /  xml  
File Role Description
  Plain text file htd.csv Class home to see the events

 Version Control Unique User Downloads Download Rankings  
 0%
Total:298
This week:1
All time:7,430
This week:571Up