|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 363 ||All time: 6,860 This week: 148|
This class can perform calculations and get the results via AJAX.
It can take parameters values from a form and perform simple calculations with those values like addition, subtraction, multiply, divide, logical_and, logical_or and power.
Prize: 30 Days Free Access to O'Reilly Safari Learning Platform
|AJAX requests are useful to develop applications on which the browser interacts with the server without reloading the current page.
This class can present a simple calculator that performs several types of operations and display the results using AJAX requests to perform the necessary calculations on the server side.
* @author Pierre-Henry Soria <firstname.lastname@example.org>
* @copyright (c) 2015, Pierre-Henry Soria. All Rights Reserved.
* @license MIT License <http://www.opensource.org/licenses/mit-license.php>
* @link http://github.com/pH-7/
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
PHP Ajax Calculator
What is That?
That Ajax Web application is an online PHP Ajax Calculator working with jQuery and OOP PHP (Calculator class).
P.S. This is a very simple project. You are free to improve it or change it! Good luck ;-)
Who is the Author?
How to Contact the Author?
By email at: pierrehenrysoria [[AT]] gmail [[D0T]] com
What is the License?
This script is under MIT License
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.