Shane Chism

MathPublisher Updated for PHP5


Description


I came across this script while looking for a handy PHP library to use on this site. It's a fantastic script, very intuitive, as it allows you to translate pseudo text into proper mathematical notation, simply by encasing it in the proper HTML tags. Unfortunately, it looks like support ended in 2005. As far as I can tell the last released version was 0.3.

The original script was using the ereg() function, which was deprecated as of PHP 5.3.0. The script below has been updated for at least PHP <= 5.3.3. For the original, and all of the files needed to run this library, check out their site: PhpMathPublisher.

Changes from original:
Nothing major; Replaced ereg() with its preg_match() equivalent on lines 322, 338, 657, and 1604

Usage


Upload into your installation following the guidelines in the PhpMathPublisher README. You may need to rename the script, based on your usage, as it originally ships as mathpublisher.php. This script is simply a replacement for the one shipped in order to avoid deprecation errors.

Code

mathpublisher-0.3-php5.php - v1.0.0
View Plain   Download Code
Download: mathpublisher-0.3-php5.php - v1.0.0


 
PHP
NOVEMBER 16 2010
Download
70 DOWNLOADS