By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,215 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,215 IT Pros & Developers. It's quick & easy.

how to call perl script by php

P: 1
hello
I hv a perl script which takes three inputs..and i want to call this script by a php file..how to do so..please help me out...i have to create a web interface
Aug 28 '08 #1
Share this Question
Share on Google+
1 Reply


bergy
P: 89
If you are running PHP in a Linux based environment you could use the command shell_exec() to execute the PERL file. Something like:
[PHP]
<?php
$output = shell_exec("./perl_script.pl arg1 arg2 arg3");
echo $output;
?>
[/PHP]
Aug 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.