mm error on class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
forgun
Forum Commoner
Posts: 61
Joined: Wed Jan 29, 2003 6:05 am
Contact:

mm error on class

Post 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];
        }
    }
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://www.phpbuilder.com/mail/php-deve ... p[quote]It means :: , and it's supposed to be a joke... [/quote]haha?
Post Reply