PHP Classes

File: call.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria  >  PHP AJAX Calculator  >  call.php  >  Download  
File: call.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AJAX Calculator
Perform calculations and get the results via AJAX
Author: By
Last change:
Date: 2 years ago
Size: 701 bytes


Class file image Download
 * @author Pierre-Henry Soria <>
 * @copyright (c) 2015, Pierre-Henry Soria. All Rights Reserved.
 * @license MIT License <>
 * @link

if (isset($_GET['op'], $_GET['lho'], $_GET['rho']))
        echo (new
Calculator($_GET['op'], $_GET['lho'], $_GET['rho']))->xmlOutput(); // PHP 5.4 syntax, access on instantiation
    catch (
Exception $oE)
file_put_contents('exception.log', $oE->getMessage() . PHP_EOL . PHP_EOL, FILE_APPEND); // Create a log file
return false;

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