How to Run PHP on Perl

The Perl programming language can call other scripts and software programs, including PHP scripts. This is typically done when you need to integrate Perl into a PHP-driven website, or if you need to call a script from Perl that is only able to be written in PHP. Once the PHP code has been run in Perl, Perl continues to run the rest of its code as normal.

Instructions

    • 1

      Open your Perl program inside of your preferred Perl editor.

    • 2

      Press "Enter" to create a new line in the section of your Perl code where you want to run your PHP file.

    • 3

      Type "extRun("your_php_file.php",PHP);" onto the new line. This function calls the "your_php_file.php" file, and tells Perl that the file should be executed as PHP code.

Related Searches:

Comments

Related Ads

Featured