RE: [PHP-WIN] Re: function parser
| From: | John Yu | Date: | Sun, 25 Apr 2004 02:36:03 +0000 |
| Subject: | RE: [PHP-WIN] Re: function parser | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23538@lists.php.net to get a copy of this message | ||
It's going to be a standard mysql database. Nothing fancy
-----Original Message-----
From: Jason Barnett [mailto:jasbarne@indiana.edu]
Sent: Saturday, April 24, 2004 10:32 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Re: function parser
John Yu wrote:
> Hi guys
>
> If I want to input a function (for example x = 2y + 5) and then have it
> stored in a database, so next time when I input the values for x and y, I
> would like php to retrieve the function and compute it. I know how to
store
> and retrieve, anyone got any ideas about writing a parser to parse the
> function?
>
> I've wrote parsers under lisp and other languages before just not PHP. If
> someone wrote something like this or know of something like this, I'd
rather
> not have to reinvent the wheel.
>
> Thanks
>
> John
>
Does your database support stored procedures? If you're doing the same
computation (or only a small set of them) every time then that might
work for you as well.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php