configuration issues

118 views
Skip to first unread message

josh

unread,
Dec 4, 2015, 4:53:42 PM12/4/15
to Simple PHP Framework
Having trouble getting to the login page

Hi Here is my configuration setup:

        private $localServers      = array('/localhost/');

        private function local()
        {
            ini_set('display_errors', '1');
            ini_set('error_reporting', E_ALL);

            define('WEB_ROOT', '');

            $this->dbHost       = 'localhost';
            $this->dbName       = 'demo';
            $this->dbUsername   = 'root';
            $this->dbPassword   = 'password';
            $this->dbDieOnError = true;
        }

I've tried to change the regular expression every which way i've seen in the group discussions, but i keep ketting this error on Xampp

Warning: mysqli_connect(): (HY000/2002): No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/sandbox/simple-php-framework-master/includes/class.database.php on line 66

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Applications/XAMPP/xamppfiles/htdocs/sandbox/simple-php-framework-master/includes/class.database.php on line 207


Thanks for the help

Tyler Hall

unread,
Dec 4, 2015, 4:58:50 PM12/4/15
to Simple PHP Framework
Hi, Josh.

Your config looks correct.

Do you have the mysqli PHP extension installed? I can't remember if that comes included with XAMPP or not.

Tyler
Reply all
Reply to author
Forward
0 new messages