I have trouble with the final Lesson 29 from the book Learn PHP, MySQL and JavaScript. This time I’m using ServBay and when I try to open the site folder I got the error :
Notice: session_start(): Ignoring session_start() because a session is already active (started from /Applications/ServBay/www/lesson29/index.php on line 2) in /Applications/ServBay/www/lesson29/header.php on line 2
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /Applications/ServBay/www/lesson29/functions.php:21 Stack trace: #0 /Applications/ServBay/www/lesson29/header.php(18): require_once() #1 /Applications/ServBay/www/lesson29/index.php(3): require_once(‘…’) #2 {main} thrown in /Applications/ServBay/www/lesson29/functions.php on line 21
If anybody knows how to fix this it would be helpful?
I used AMPPS and XAMPP but they refuse to show me even the index of the site folder.
Thanks.
I tried to do something with the code advice from another coding forum but that didn’t work.