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? 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 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. Link to comment https://forums.phpfreaks.com/topic/149358-perl-in-php/#findComment-784539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.