|
Posted by cjl on 02/10/07 19:29
Toby:
That is the single best response ever given to a newsgroup post. Thank
you.
Obviously, I have got a lot of reading to do.
I'm wondering if there is a simpler approach...after all, I want the
user input to be valid php, I just want to limit what they can type to
a few functions I write ( circle(), line(), etc..) and a few control
structures. Maybe I could create an object which includes member
functions which override all native php functions, and have the user
input actually be calls to that objects methods, and only pass through
the ones that I want to allow?
As far as the approach you are suggesting, some googling showed:
http://greg.chiaraquartet.net/archives/138-PHP_ParserGenerator-and-PHP_LexerGenerator.html
Which maybe can help me?
Anyway, back to the drawing board.
-CJL
Navigation:
[Reply to this message]
|