Hi,
I have created two classes, MySQL_DBA and mailHandler. I have tried to include the MySQL_DBA class into the same page that is including the mailHandler class and call the MySQL class from inside the mailHandler like so:
include("mysql.class.php");
class mailHandler {
function sendInternalMail($sender,$body,$recepient) {
$dba_handle = new MySQL_DBA;
$dba_handle->makeMySQLConnection();
$dba_handle->makeMySQLResult($sql);
$dba_handle->destroyMySQLConnection();
}
}
$mail_handle = new mailHandler;
$mail_handle->sendInternalMail("abc","xyz","foo");
The script above is cut down but hopefully shows what I am doing. Anyway, it executes but it takes a long time and the Apache.exe service restarts with an error. Is this because I am doing something PHP shouldn't be able to do? Perhaps PHP5 would handle it better?