How can I include the output of a Perl script into a PHP page? -


We have been asked to support some older Perl forms on a new site, because we have a PHP based CMS The script needs to be included in our new CMS.

I have tried a little shell_exec, but it is disabled. Has anyone got any ideas?

perl extension

A Perl extension is available

This allows you to:

  • Load and execute pearl files

  • Instant of Pearl objects
  • Pearl objects
  • $ Cvs -d: pserver: cvs.php.net:/repository co pecl / perl

    run a Perl script An example is listed here:

    Example 1 (test1.pl)

      print "Hello!"  

    Example 1 (test1.php)

      & lt ;? Php print "Hello from PHP!"; $ Perl = new Pearl (); $ Perl- & gt; Required ("test1.pl"); Print "Bye!"; ? & Gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -