Re: Square brackets tags
| From: | Marco Bambini | Date: | Tue, 19 Oct 2004 20:09:31 +0000 |
| Subject: | Re: Square brackets tags | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199822@lists.php.net to get a copy of this message | ||
On 19/ott/04, at 20:34, Greg Donald wrote:
On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini <marco@vampiresoft.com> wrote:I can't alter the "code". I need PHP to execute these commands but I can't write PHP code inside that pages. Any help? Thanks, Marco BambiniI 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?