I have a php script that gets called by a payment processing server to validate information and setup and account. The entire script works fine until it gets to a remote included file and that script will run but it doesn't return to my calling script properly.
The included file takes about 45 seconds to complete... does processing stop on my original php file (that called the other script) and wait for it to return or does it continue on. This could be a time-out issue then?
BIGGER PROBLEM:
I want to log what is going on because now my included file isn't even running. I am sure php may be providing an error but since I don't physically call the script in a browser I can't see the error. How can I write all errors that would appear to a log file for review?
Here is some code from the php script:
echo "Above this processess fine. I write to a log so I know all the steps before this work";
$log_handle = @fopen($logfilename, 'ab');
@fwrite($log_handle, "- About to run included script\r\n");
@fclose($log_handle);
include "http://www.mydomain.com/domains/createAccount.php?acctdomain=$domain&acctEmail=".$_POST['EMAIL']."&contactName=".$_POST['NAME'].";
$log_handle = @fopen($logfilename, 'ab');
@fwrite($log_handle, "- SCRIPT COMPLETE";
@fclose($log_handle);
My included file used to run correctly but not return and print the "SCRIPT COMPLETE" text to my log file, it was weird but I could live with it.
Now it's not even running and I need to log why. How can I do this?
Thanks.