Re: Square brackets tags
| From: | Greg Donald | Date: | Tue, 19 Oct 2004 18:34:27 +0000 |
| Subject: | Re: Square brackets tags | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199816@lists.php.net to get a copy of this message | ||
On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini <marco@vampiresoft.com> 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 [command1] ?>.
> I want use PHP because these commands needs to be remapped with a "web
> oriented" language.
>
> Is it technically possible to remap these square brackets tags to php?
> And if yes, what is the best way? A custom template system or a C PHP
> extension?
Why not just write PHP code normally and use eval() to parse it out?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/