sheikhmdirfan Posted August 26, 2009 Share Posted August 26, 2009 Hello everyone, I have XAMPP installed on my windows xp system. I have a php file from which i want to run a Perl script and take the output of the perl script in a PHP variable and display it. I would like to know how this can be done and is there any setting that i need to change OR do i need to download and install any package or anything. If yes then where i have to install that or where i have to keep the downloaded package. Please give an example if possible.. Any help will be highly appreciated.. Thanks in advance... Link to comment https://forums.phpfreaks.com/topic/171893-running-a-perl-script-from-php-file-and-storing-its-result-in-a-php-variable/ Share on other sites More sharing options...
ignace Posted August 26, 2009 Share Posted August 26, 2009 $output = array(); exec('cd /path/to/perl/parser; perl perlfile.pl', $output); print_r($output); Link to comment https://forums.phpfreaks.com/topic/171893-running-a-perl-script-from-php-file-and-storing-its-result-in-a-php-variable/#findComment-906500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.