Page 1 of 1

mm error on class

Posted: Wed Apr 02, 2003 12:40 pm
by forgun
i get an error on inc file (class)

Code: Select all

Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/virtual/site13/fst/var/www/html/maslol/admin/includes/auths.inc on line 10

Fatal error: Cannot instantiate non-existent class: ps in /home/virtual/site13/fst/var/www/html/maslol/admin/login.php on line 5
wtf is that error and how i can know how to not to do at in me next scripts the code line is

Code: Select all

session_start();
$basicrealm  = "Private Stuff";
$show = "need to login";
class loginsys extends users {
    var $err;
    function checkuser($user ,$pass) {
        users::set_db();
        $this->sers::condb(); #line10
        if ($user != '' && $pass != '') {
            $pass = md5($pass);
            foreach ($this->auth as $data) {
                if ($user == $data['user'] && $pass == $data['pass']) {
                    header("Location: HTTP://" .$_SERVER['HTTP_HOST'] .$PHP_SELF ."?loc=adminindex");
                }
                else {
                    $a = new users();
                    $this->err = $a->errmsgs[0];
                }
            }
        }
        else {
            $goto = new users();
            $this->err = $goto->errmsgs[0];
        }
    }

Posted: Wed Apr 02, 2003 1:35 pm
by volka
http://www.phpbuilder.com/mail/php-deve ... p[quote]It means :: , and it's supposed to be a joke... [/quote]haha?