class NicknameVerifier {
function NicknameVerifier() {}
function isValid() {
if ($fileID) {
$content = fread($fileID, HTMLRetriever::MAX_URL_SIZE);
fclose($fileID);
if ($content) $this->setErrorArray(array('nickname' => $content)); // DUP NICKNAME FOUND
return false;
}
}
}
}
Also consider:
class HTMLRetriever {
var $MAX_URL_SIZE = 100000;
}
Upon the line:
$content = fread($fileID, HTMLRetriever::MAX_URL_SIZE);
I get the following error:
Fatal error: Undefined class constant 'MAX_URL_SIZE' in /wwwroot/mycgiserver.com/members/includes/chat_classes.php on line 230
I am using PHP version 5 at www.myjavaserver.com and I am completely at a loss as to what is going on. Both classes reside in chat_classes.php equally. Why am I getting an "undefined class constant" error, it's right there?!
Thanx
Phil