Creative, Informative and Entertaining Stuff for everyone

Wednesday May 23rd 2012

Categories

Archives

Calender

January 2008
S M T W T F S
    Feb »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archive for January, 2008

How to parse a html document and replace the tag with their corresponding value

<?php class parseHTML { /** * HTML Form Parser * * @package HtmlFormParser * @version $Id 1.0 * @author Vinod Ram *$html_data is the content of html file that you have to parse *$_POST is the array containing the value that is to replaced with * @copyright 2008 vinodram */ public function parseForms($html_data) { $allowedChar = [...]

Calculate number of days,hours, minute, seconds passed from todays date to some past date

<?php function get_time_differenceFromToday($fromDate) { $uts = strtotime( $fromDate );//date format YYYY-MM-DD HH:MM:SS $uts = time();//unix timestamp //strtotime( $end ) if( $uts!==-1 && $uts!==-1 ) { if( $uts >= $uts ) { $diff = $uts - $uts; if($diff > 604800) { return date("m-d-Y [...]

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!