PHP Classes

File: testnumericalclock2.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  PHP Realtime Clock  >  testnumericalclock2.php  >  Download  
File: testnumericalclock2.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Realtime Clock
Display clock or timer updated in real time
Author: By
Last change:
Date: 5 years ago
Size: 1,920 bytes


Class file image Download
<?php session_start();?>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>DYNAMIC NUMERICAL CLOCK 2</title>

    <style type="text/css">

         #clock {
            font-family: verdana;
            font-weight: bold;
            font-size: 24px;
            background-color: green;
            width: auto;
            margin-left: 63%;
         #other {
            font-family: verdana;
            font-weight: bold;
            font-size: 14px;
            color: #FFFFFF;
            background-color: grey;
            width: auto;
            margin-left: 15%;
            margin-right: 15%;
<div id="clock">
     * Example file
// $numericalclock1 = new numericalclock(explode('-',date('H-I-s')),0,1,true);//simple exemple to make a true clock
    // $numericalclock1 = new numericalclock(isset($_SESSION['time'])?$_SESSION['time']:null,0,1);//timer without buttons allways procede like this on every page you use it
$numericalclock1 = new numericalclock('',1,1);//timer with button and no specification of which instanceof numericalclock class; you could just use this to allow the same timer on all the chosen pages
echo $numericalclock1->chronoscript();
</div><div id="other">
<h1>About the String Foreach class</h1>
Stringforeach class is a usefull way to handle some actions over the string type of PHP.<br>
It allows user to look and go trough a string just like an array and then make easier the manipulation like
search, replacement, deletion,explosion,case transformation .<br>

for some examples of use see the teststrforeach.php script file<br>
bug reporting qnd feeback to or just use the dedicated forum of the package.<br>