This might be a very stupid question. But I can't figure out where the problem is.
I am calling a function in a script
$status = get_billing_status_access($domain_id);
I have included in this script the function page
require("http://www.mywebsite/dreamaccount/functions.php");
The function I am calling is in that page
// GET BILLING STATUS FOR BILLING PURPOSES
function get_billing_status_bill($domain_id) {
$db = new ps_DB;
$q = "SELECT domain_start_date,domain_host_id,domain_host_periods,domain_host_last_billed FROM domains WHERE domain_id='$domain_id'";
$db->query($q);
while ($db->next_record()) {
$status = get_billing_status_bill_2($db->f("domain_host_id"),$db->f("domain_host_periods"),$db->f("domain_host_last_billed"));
}
return $status;
}
But when I run the script I get the following error message:
Fatal error: Call to undefined function: get_billing_status_access() in /home/httpd/vhosts/mywebsite.com/httpdocs/dreamaccount/auth.sessions.inc.php on line 69
It seems as if the script doesn't look into the function page. What am I doing wrong? Does anybody know?
Thank you in advance
Andrea