kevinyeandel Posted December 28, 2008 Share Posted December 28, 2008 Hi Trying to implement googlecheckout and there is a piece of code that is called by their server on my server called responsehandler.php. In that code I've added a block to write to a file so I know full well the code is being called. I need to call a perl script with some arguments. Nothing seems to do it. I've tried this passthru('/usr/bin/php ./google_credit_update.php'); and this exec('/usr/bin/perl /home/iuser/cr_account.pl 000784083642 + 10'); and this system('/usr/bin/perl /home/iuser/cr_account.pl 00784083642 + 10'); I've tried calling php and perl with full paths to the bins. I've written a test prog in php and perl to test the individual lines of code but for some reason its not executing. Anyone got any ideas?? Many thanks Kevin Link to comment https://forums.phpfreaks.com/topic/138675-system-exec-passthru-tried-them-all-now-im-at-a-loss/ Share on other sites More sharing options...
Mark Baker Posted December 29, 2008 Share Posted December 29, 2008 Is PHP running in safe mode? Link to comment https://forums.phpfreaks.com/topic/138675-system-exec-passthru-tried-them-all-now-im-at-a-loss/#findComment-725049 Share on other sites More sharing options...
kevinyeandel Posted December 29, 2008 Author Share Posted December 29, 2008 php.ini says ; ; Safe Mode ; safe_mode = Off I wish it was the case then at least I would know. It is very strange. Thanks anyway. Kevin Link to comment https://forums.phpfreaks.com/topic/138675-system-exec-passthru-tried-them-all-now-im-at-a-loss/#findComment-725109 Share on other sites More sharing options...
kevinyeandel Posted December 29, 2008 Author Share Posted December 29, 2008 And it says in the apache error_log, Can't open perl script "/home/iuser/cr_account.pl": Permission denied Yet the permissions on the file are 755 so there is execute and read for OGW. The top line of the perl script is also #!/usr/bin/perl and the path is correct. Link to comment https://forums.phpfreaks.com/topic/138675-system-exec-passthru-tried-them-all-now-im-at-a-loss/#findComment-725130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.