PHP Classes

File: start.php

Recommend this page to a friend!
  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: 11 years ago
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>