<?php require_once 'class_login.php'; $login = 'your_login_to_check'; $pass = 'your_pass_for_your_login'; $login = new login('./forum/config.php','./forum/includes/constants.php'); if (count($login->aErrors)>0) print_r($login->aErrors); else{ echo 'id for user ['.$login->verify($login,$pass).']'; } ?>