Source for file voice_error.php

Documentation is available at voice_error.php

  1. <?php
  2. /**
  3. * VoiceXML Error Handler
  4. *
  5. * @package Phone2Dev
  6. * @author Stanislav Miroshnikov
  7. */
  8. /**
  9. * VoiceXML Error Handler
  10. *
  11. * Custom error handling function for vxml documents, which is
  12. * necessary because VoiceXML browsers cannot handle HTML tags
  13. * in the default error handler
  14. */
  15. function errorHandler($code, $message, $file, $line)
  16. {
  17. print "<form id=\"error\">\n<block>\n";
  18. print $message.' in '.$file.' at line '.$line;
  19. print "\n</block>\n</form>\n</vxml>";
  20. exit;
  21. }
  22. set_error_handler('errorHandler');
  23. //trigger_error('This is an information log message.', E_USER_NOTICE);
  24. ?>

Documentation generated on Tue, 4 Jan 2005 13:48:10 -0500 by phpDocumentor 1.3.0RC3