PHP Classes

File: horloge.vxml.php

Recommend this page to a friend!
  Classes of Ben Yacoub Hatem  >  VXML  >  horloge.vxml.php  >  Download  
File: horloge.vxml.php
Role: Example script
Content type: text/plain
Description: Current time sample application using vxml
Class: VXML
generate easily VXML document
Author: By
Last change: Changed based on the version 1.0.1 of the php-vxml class
A Welcome message is added in the beginning of the application
Date: 20 years ago
Size: 1,397 bytes


Class file image Download
    /// Sample usage of vxml.class.php
    /// Exemple de l'Horloge parlante
include ("vxml.class.php");
$vxml_object=new voicexml;
// Welcome message
$vxml_object->welcome("Bienvenu sur le service de l'horlange parlante.", "horloge");

// Form de l'horloge
$vxml_object->addscript( "
    function horlogeparlante()
       var heure;
       heure= \"Il est maintenant : \"+now.getHours()+\" heures \"+ now.getMinutes() +\" minutes et

\"+now.getSeconds()+\" secondes.\";
       return heure;


For more information send a message to info at phpclasses dot org.