- Joined
- Aug 21, 2023
- Messages
- 40
- Reaction score
- 0
Hello,
I've already posted earlier my treat troubleshooting Lesson 29 from the book Learn PHP, MySQL and JavaScript. This time I'm using ServBay and when I open the site 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've already posted earlier my treat troubleshooting Lesson 29 from the book Learn PHP, MySQL and JavaScript. This time I'm using ServBay and when I open the site 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.