Forum Moderators: coopster

Message Too Old, No Replies

How to use NUSOAP with a Cronjob?

I have it included, but I can't seem to call it, any ideas?

         

kazisdaman3

8:33 am on Jul 16, 2008 (gmt 0)

10+ Year Member



Hey everyone, I've searched a-while for this, and I always seem to be having trouble uses built-in-classes within PHP CronJobs, I assume this has to do because everything isn't included as normal?

Any ideas on this would be much appreciated, all I'm trying to do is within the cronjob

<?

//CronJob
include_once('/var/www/mydomain.com/nusoap/nusoap.php');

$client = new SoapClient('http://soapdomain.com?wsdl',true);

?>

Whenever it gets to the new SoapClient the application dies, and doesn't even spit out an error, is this because it just doesn't work, or is this definitely because some how the include is not working? and if so how do I know if the include Is working?

Thank you for taking the time to read this, I've searched awhile and could not find anything, thank you.

dreamcatcher

7:14 am on Jul 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

When you access the file in your browser does it run? Set your error reporting to E_ALL to see if that throws any light on the issue. After your opening <? tag, add the following:

error_reporting(E_ALL);

Then access the file in your browser and see if you get errors appear.

dc

kazisdaman3

8:43 pm on Jul 19, 2008 (gmt 0)

10+ Year Member



Thanks dreamcatcher, no your right, there was no errors, appears like you were right. It was working after all, the call was just wrong. thanky ou.