Re: [PHP] Custom Open Tags

2004-12-03 Thread Greg Donald
On Wed, 01 Dec 2004 23:25:00 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: I think patching zend_language_scanner.l would be easier actually ;) Probably getting a little off-topic here but after I saw how seemingly easy this might be, I had to give it a shot. I added this in

RE: [PHP] Custom Open Tags

2004-12-01 Thread Gryffyn, Trevor
I think there's a way to redefine what tag PHP uses, but I think it globally resets it. I don't think you can say use !blah ! and also use ?php ?. I think that setting is in PHP.INI somewhere. It might be easier to change your to be executed later php tags to something else and before it's sent

Re: [PHP] Custom Open Tags

2004-12-01 Thread Richard Lynch
Sven Schwyn wrote: Hi folks Does anybody know whether there's a way to tell PHP to accept an alternative open tag like for instance ?mytag or ?mc along with the normal ?php tag? I'm looking for a way to have two kinds of PHP code in a page. The first kind tagged ?mc ... ? contains the PHP

Re: [PHP] Custom Open Tags

2004-12-01 Thread Sven Schwyn
Hi Trevor I'm not sure, but that may allow you to use ?php ? AND % % tags at the same time. Thought about that, it would actually be very elegant if it was the other way round. ASP tags would be great instead of a ?mc ... ? custom tag, however, that won't do the trick as the execution of the

Re: [PHP] Custom Open Tags

2004-12-01 Thread Greg Donald
On Wed, 1 Dec 2004 22:16:25 +0100, Sven Schwyn [EMAIL PROTECTED] wrote: Does anybody know whether there's a way to tell PHP to accept an alternative open tag like for instance ?mytag or ?mc along with the normal ?php tag? Patch zend_language_scanner.c and add you own custom tags. Isn't open

Re: [PHP] Custom Open Tags

2004-12-01 Thread M. Sokolewicz
you could edit the parser rules manually, recompile PHP and it should work Sven Schwyn wrote: Hi Trevor I'm not sure, but that may allow you to use ?php ? AND % % tags at the same time. Thought about that, it would actually be very elegant if it was the other way round. ASP tags would be great

Re: [PHP] Custom Open Tags

2004-12-01 Thread Greg Donald
You could always patch zend_language_scanner.c and add your own custom tags. Isn't open source great? :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Custom Open Tags

2004-12-01 Thread M. Sokolewicz
Greg Donald wrote: You could always patch zend_language_scanner.c and add your own custom tags. Isn't open source great? :) I think patching zend_language_scanner.l would be easier actually ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php