Ask a Question related to PHP Development, Design and Development.
-
Nikhil G. Daddikar #1
Parsing PHP
I am using PHP to develop and web app.
The app also has a scripting language for the *end user*. I was thinking
if I could expose a very simple subset of PHP to them (foreach,
if-then-else, variable assignments and comments) and then simply "eval"
it. But I don't want them to use calls like system or do infinite loops
etc. that will screw up the system.
I was thinking if I had a PHPparser that returns tokens, then I can
eliminate the call to unwanted funtions, etc.
Any ideas on how I should proceed?
Thanks.
Nikhil G. Daddikar Guest
-
How do i Parsing xml
This how my customers xml is coming across and can not change. <month name="January"> <day> <date>01</date> <name>Thursday</name> <time>12:03... -
parsing XML
Why won't this work? I just want to create one Node for each <placemark> tag in the xml. the xmlData trace gets: <kml... -
PDF Parsing
Hello, I'm writing a PDF Parser and I want to recognize lines or Logic units(paragraphs or sentences) in the PDF stream objects. I need to take a... -
Parsing URL
How do I go about parsing a url from the browser location. For example if I have the following url: ... -
[PHP] Parsing PHP
There is the tokenizer extension... http://www.php.net/tokenizer This might give you a good start. -- Peter James petej@phparch.com ... -
Jeff Moore #2
Re: [PHP] Parsing PHP
On Saturday, July 26, 2003, at 03:06 AM, Nikhil G. Daddikar wrote:
use smarty> I am using PHP to develop and web app.
>
> The app also has a scripting language for the *end user*. I was
> thinking if I could expose a very simple subset of PHP to them
> (foreach, if-then-else, variable assignments and comments) and then
> simply "eval" it. But I don't want them to use calls like system or do
> infinite loops etc. that will screw up the system.
>
> I was thinking if I had a PHPparser that returns tokens, then I can
> eliminate the call to unwanted funtions, etc.
>
> Any ideas on how I should proceed?
[url]http://smarty.php.net/[/url]
Jeff Moore Guest



Reply With Quote

