Login   Register  
PHP Classes
elePHPant
Icontem

File: start.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrzej Krokos  >  Difference between two dates  >  start.php  >  Download  
File: start.php
Role: Example script
Content type: text/plain
Description: start
Class: Difference between two dates
Calculate the difference of time between two dates
Author: By
Last change: index file
Date: 2012-12-20 09:50
Size: 591 bytes
 

Contents

Class file image Download
<?php

/**
 * the difference between two dates
 * copyright : (c) 2012 Andrzej Krokos
 * version PHP : 5
 * author : shreker983@gmail.com
 * licence : GPL
 *
*/

?>

<script src="http://code.jquery.com/jquery-latest.js"></script>

<script type="text/javascript">
$(document).ready(function() 
{
    $("#responsecontainer").load("diffclass.php");
    var refreshId = setInterval(function() {
    $("#responsecontainer").load('diffclass.php?randval=' + Math.random());
    }, 1000);
    $.ajaxSetup({ cache: false });
});
</script>

<div id="responsecontainer"></div>