Categories
josephscott

PHP::Interpreter

Bricolage announced a new release today which adds support for PHP5 templating. They are able to do this via a new a CPAN module, PHP::Interpreter. This module allows you to embed a PHP5 interpreter into Perl. On top of that you can reach back into Perl from PHP. Neat stuff.

It would be nice to see the same sort of thing for PHP, a Perl interpreter that could be embedded into PHP and also reach back into PHP for functions and objects. Wasn’t all of this one of the goals of Parrot, that with a common base languages running on top of Parrot could make use of each other libraries?

One reply on “PHP::Interpreter”

Interesting. But if reaching back into Perl is desirable, why not use HTML::Mason instead of PHP? Mason allows you to embed Perl directly into your templates and access Perl libraries.

I know there’s a lot of existing sites using PHP, but, for new sites, HTML::Mason might be a good pick.

Leave a Reply

Your email address will not be published. Required fields are marked *