I am facing problem with running perl script inside php file. Please find my simple perl and php program below. I have installed both php and perl successfully in my windows machine.

test1.pl
print "Hello from perl! "

test.php
<?php
print "Hello from PHP! ";
passthru(“perl test1.pl”);
?>


The passthru is not returning anything. It is not executing the perl script. I also tried with exec() function.
Can you please help me on this?

Check out this article on using Perl in PHP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.