Code: Select all
include('http://mysite.com/error_report.php');
report_error("9001", "0", "0", "http://thesite.com", "0");The file error_report.php begins like this:
Code: Select all
<? function report_error($errorcode, $headertype, $messagetype, $domain, $submextra) {
...I'm asking because the script works fine when it's included by a script in the same domain as it. When I try to include error_report.php remotely, it just tells me "Fatal error: Call to undefined function: report_error()". The file's being included; it's just not able to see the function. Any ideas?