Jump to content

system, exec, passthru - tried them all - now I'm at a loss


kevinyeandel

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.