Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 28th, 2008, 11:43 AM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default how to call perl script by php

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
Reply
  #2  
Old August 28th, 2008, 04:33 PM
bergy's Avatar
Member
 
Join Date: Mar 2007
Posts: 83
Default

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]
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles