[PHP]
class NicknameVerifie r {
function NicknameVerifie r() {}
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;
}
}
}
}
[/PHP]
Also consider:
[PHP]
class HTMLRetriever {
var $MAX_URL_SIZE = 100000;
}
[/PHP]
Upon the line:
[PHP]$content = fread($fileID, HTMLRetriever:: MAX_URL_SIZE);[/PHP]
I get the following error:
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.ph p equally. Why am I getting an "undefined class
constant" error, it's right there?!
Thanx
Phil
class NicknameVerifie r {
function NicknameVerifie r() {}
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;
}
}
}
}
[/PHP]
Also consider:
[PHP]
class HTMLRetriever {
var $MAX_URL_SIZE = 100000;
}
[/PHP]
Upon the line:
[PHP]$content = fread($fileID, HTMLRetriever:: MAX_URL_SIZE);[/PHP]
I get the following error:
Fatal error: Undefined class constant 'MAX_URL_SIZE' in
/wwwroot/mycgiserver.com/members/includes/chat_classes.ph p on line 230
/wwwroot/mycgiserver.com/members/includes/chat_classes.ph p on line 230
at a loss as to what is going on. Both classes reside in
chat_classes.ph p equally. Why am I getting an "undefined class
constant" error, it's right there?!
Thanx
Phil
Comment