0

I have a perl script which i have to run in php code. Here is my perl script.

perl /var/www/app/site_by_corp.pl &

I was running this perl script in terminal by manual. Now i want to run this inside php code.

JeevaRekha
  • 383
  • 1
  • 7
  • 21
  • 4
    Possible duplicate of [Run executable from php without spawning a shell](https://stackoverflow.com/q/16595044/6521116) – LF00 Jun 13 '17 at 06:32

1 Answers1

0

Use exec

exec("perl /var/www/app/site_by_corp.pl &", $output);
Sagar V
  • 12,158
  • 7
  • 41
  • 68
Eimsas
  • 492
  • 6
  • 21