I want to pass a PHP script from within a Perl script. The Perl script will process some regex with string, and in the end will return another string, which should be captured by PHP scripts. How can I accomplish this? Is there any new modules installed, or even installing WAMP in Pearl (currently Pearl has been installed in C: \ , and I am working in WAMP)? I have not tried to do it myself, but I think that you Edit: I am not sure how the parameters are passed to the paralcript through the command line, so you may have to use it to find out on the command line. Or if the Perl script is being used through the URL, then you exec () Should be able to call Perl script by using command or PHP, pass data and read the output again.
$ output = exec ("c: \\ whatever \\ directory \\ script.pl data");
$ output = file_get_contents ("http: // whatever / url? Data = whateverdata ")
Comments
Post a Comment