VTS Posted April 4, 2007 Share Posted April 4, 2007 As the tittle says, I need to know how to use perl inside a PHP program. The only thing that I am using Perl for is to move a file to a mapped drive on my network. I am not sure at all how to go about using Perl inside my PHP program. If you can give me a simple example(just using the copy function or any other function) or a link to a site that shows you how to do that, I would greatly appreciate it. thanks in advance, vts Quote Link to comment https://forums.phpfreaks.com/topic/45623-solved-need-help-using-perl-inside-a-php-program/ Share on other sites More sharing options...
trq Posted April 4, 2007 Share Posted April 4, 2007 [code=php:0] <?php exec("path/to/perl/program.pl"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/45623-solved-need-help-using-perl-inside-a-php-program/#findComment-221616 Share on other sites More sharing options...
VTS Posted April 4, 2007 Author Share Posted April 4, 2007 Oh, I guess that would be a pretty easy way to do it lol. Thanks for the info. Quote Link to comment https://forums.phpfreaks.com/topic/45623-solved-need-help-using-perl-inside-a-php-program/#findComment-221620 Share on other sites More sharing options...
effigy Posted April 5, 2007 Share Posted April 5, 2007 Make sure you check the return value and handle STDERR properly. Quote Link to comment https://forums.phpfreaks.com/topic/45623-solved-need-help-using-perl-inside-a-php-program/#findComment-222156 Share on other sites More sharing options...
VTS Posted April 5, 2007 Author Share Posted April 5, 2007 Will do. Thanks alot. Quote Link to comment https://forums.phpfreaks.com/topic/45623-solved-need-help-using-perl-inside-a-php-program/#findComment-222194 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.