Developing a recursive command parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, i'm trying to develop an application able to interpret
commands loaded from a database or any other source similiar to this

$strParam = 'title=%SESSION(sessionvar)'
or a more complicated
$strParam = 'title=%SESSION(sessionvar_%COOKIE(mycookievar))'

What I need, is to find any special command starting width a
configurable special char (% in this case), get the text inside it and
elaborate it...

The final result could be a simple string like these
$strParam = 'title=My Session Title'
and
$strParam = 'title=My Session and Koookie Value'

I'm starting to working on it, do you know if is there a way to
accomplish to this using PCRE or if there is something just developed?

Thanks, Straps

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux