lakshmananindia Posted March 14, 2009 Share Posted March 14, 2009 I have the following PHP script which will call a perl script. <?php echo exec("/usr/bin/perl /home/lakshmanan/public_html/perl.pl"); ?> The perl script will just print the username of the currently logged in user. The problem is as follows: If I run the script in the localhost "php print.php", it is printing the output from the perl script. But if I run the same php script in webserver, it is not printing the output. What may be the problem? Please help? Quote Link to comment https://forums.phpfreaks.com/topic/149358-perl-in-php/ Share on other sites More sharing options...
Mark Baker Posted March 14, 2009 Share Posted March 14, 2009 couple of possibilities spring immediately to mind: priviliges (e.g. webserver running as a different user), directory paths Quote Link to comment https://forums.phpfreaks.com/topic/149358-perl-in-php/#findComment-784432 Share on other sites More sharing options...
alphanumetrix Posted March 14, 2009 Share Posted March 14, 2009 A lot of pearl features you don't even have to call from directories on some servers. IE: if I were to call Pearl's SMTP Mail - I would write: <?php include("Mail.php"); ?> That automatically pulls it from /us/bin/pear/ or whatever the directory is. Quote Link to comment https://forums.phpfreaks.com/topic/149358-perl-in-php/#findComment-784539 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.