[Phpwm] Fnuction to calculate a formula

Daniel Davies daniel at sitedesign.net
Mon Dec 3 21:57:36 GMT 2007


Hi,

This url might be of use

http://www.phpclasses.org/browse/package/2695.html

I can't say I've tried or could vouch for the quality, but it sounds
like it does what you want. The stuff from PHP classes is generally
pretty good, if only as a starting point.

Regards,

Daniel Davies


David Goodwin wrote:
> Elliot Smith wrote:
>> Colin Taylor wrote:
>>> Hello, I am on the hunt for a PHP 5 function that will
>>> calculate a given formula.
>>>
>> Providing users aren't supplying the input, eval() seems OK to
>> me.
> Call
>> me crazy if you like.
>
>
>
> I'd be tempted to go with eval - or alternatively perhaps you can
> use something like 'bc' which /might/ allow you users to enter
> nasty characters without the same fear of exploitation, but it's
> unlikely.
>
> (Nothing on pecl.php.net that seems to jump out at me as being of
> use.) (http://uk2.php.net/bc seems to be of limited use)
>
> David.
>

_______________________________________________
Phpwm mailing list
Phpwm at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/phpwm


-- 
Daniel Davies

Web Sitedesign.net Ltd
Birchley House
Birchfield Lane
Oldbury
West Midlands
B69 1DT

Tel: 0121 543 4840
Fax: 0121 543 4841

http://www.sitedesign.net




More information about the Phpwm mailing list