PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 298 All time: 7,437 This week: 78Up
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: 36
All time rank: 212020 in Egypt Egypt
Week rank: 227 Up3 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 (3)  
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 (3)  /  xml  
File Role Description
  Plain text file htd.csv Class home to see the events

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:298
This week:0
All time:7,437
This week:78Up