Re: [PHP] Square brackets tags

2004-10-19 Thread Greg Donald
On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini [EMAIL PROTECTED] wrote: I need to write a PHP extension or a PHP template system (this is the question) to parse some commands enclosed in square brackets inside web pages. Please note that the commands are in the form [command1] and not ?php

Re: [PHP] Square brackets tags

2004-10-19 Thread Marco Bambini
On 19/ott/04, at 20:34, Greg Donald wrote: On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini [EMAIL PROTECTED] wrote: I need to write a PHP extension or a PHP template system (this is the question) to parse some commands enclosed in square brackets inside web pages. Please note that the commands

Re: [PHP] Square brackets tags

2004-10-19 Thread GH
I am thinking in theory include() the file in to a wrapper php file that can then do as Marco says evaluate or do a series of str_replaces? [quote from previous emails] I'm sure there are. For example you can convert the string using htmlspecialchars, and then convert only allowed tags back:

Re: [PHP] Square brackets tags

2004-10-19 Thread Sam Smith
I was just reading a little on this. This is the way you build a template system. Smarty uses { }. Maybe you could check out the Smarty page and get an idea. http://smarty.php.net/ Or maybe you could just use Smarty, you can change the { } to anything you want. Hi All, I need to write a