RE: [PHP-WIN] function parser

2004-04-24 Thread John Yu
, 2004 3:46 PM To: PHP-Windows List Subject: Re: [PHP-WIN] 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 t

Re: [PHP-WIN] function parser

2004-04-24 Thread Jordi Canals
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 p

RE: [PHP-WIN] function parser

2004-04-24 Thread Svensson, B.A.T. (HKG)
Interresting concet. I duno if this work, but: In php you might like to have a function template, wich you spool to a file with the cinction, then include this file in another script. Like: if ($fp = fopen($functionFile, "w)) { fwrite($fp, "function $funcName($arglist)\n"); fwrite($fp, "{\