|
Posted by Schraalhans Keukenmeester on 04/30/07 08:36
> Sebosac wrote:
>> Hi,
>>
>> i need to write a php script parser but i don't really succes to wrote
>> one and i finaly i don't know how do this !
>>
>>
>> it seems simple for sure, however my last test was unsuccessfull, just i
>> want to is :
>>
>> - read a php or plain text file and store us content to Array
>>
>> - explode and expand the first Array line by line separing Html tag and
>> PHP to a Biggest Array, one line for one tag or ";"
>>
>> - send the new array to a "foreach" or "while" statement and change the
>> keywords by they equivalent in PHP or Html
>>
>> - next step, send the PHP code to an eval()
>>
>>
>> the result was stored or send to the output buffer.
>>
>>
>> my last try given an "error in eval's code" error, but the same alone
>> file work really fine without errors
>>
>> Thank for your suggestions and helps.
>>
>> Cordialy.
>> Sebastien.
On Mon, 30 Apr 2007 01:03:02 +0200, Henk verhoeven wrote:
> http://greg.chiaraquartet.net/archives/137-a-parser-generator-for-PHP-finally.html
> http://www.program-transformation.org/PHP/PhpFront
>
> Greetings,
>
> Henk Verhoeven,
> www.phpPeanuts.org.
>
> BTW be carefull, using eval may make your app vurnerable to php code
> injection.
>
[Topposting fixed]
Henk, I've noticed you consistently reply above other people's messages.
Would you be so kind to fix your news agent?
And while I am here, I noticed there's a 't' missing in your email
address. PHPPeanuts without it just sounds errm... Well, you get my drift ;-)
KR,
Sh.
[Back to original message]
|