Slashdot Mirror


PHP and Perl in One Script?

gbulmash asks: "Recently, I began working on a graphics project and wanted to use ImageMagick. As a PHP coder, I figured I'd use MagickWand for PHP. But after some investigation, I decided that an alpha at 0.1.8 with sparse documentation just wasn't going to be good enough for production use. I decided that PerlMagick would be a much better API, but I didn't want to code the whole project in Perl. In the end, I found a cool package for embedding Perl code in PHP scripts (with an article on its use) and it went to a 1.0.0 release, earlier this year. I think I've found my answer, but before I make a final decision and go ahead with it, I thought I'd ask the knowledgeable Slashdot crowd: Is there a better way of interfacing Perl with PHP so you can get the best of both worlds?" So you've got Perl in your PHP, is there a way to do PHP in your Perl?

1 of 174 comments (clear)

  1. Re:If you use PHP.... by JordanL · · Score: -1, Troll

    If you really want to take the position that PERL is in every way superior to PHP, I challenge you to use nothing but PERL driven web apps. They are painful, slow, and prone to their own set of problems. PERL is much more powerful for serverside tasks which require access to things outside of user data and databases, but PHP has it's purposes, and it serves them moderately well.