I'm presently watching episode 13 of the PHP Practitioner series. I'm at the point where I am attempting to run the connection string to the database found inside of the try-catch block.
However, when I run it, my browser goes straight to the XAMPP dashboard page and I get this in the url address bar: http://localhost:8080/dashboard/. Even if I manually change it to index.php as soon as I hit enter it takes it right back to dashboard. I looked in the various httpd config files in the XAMPP Control panel and did a search on dashboard, hoping to find something that was sending to it this web page but could find nothing. I'm pretty much stuck. Can someone give me some advice on what I may be doing wrong? I have my connection string set up exactly as in the video.
OK, I figured it out. It appears that the only way to get my php files to run is to put the folder I have the files in into the xampp/htdocs folder. So my url is http://localhost:8080/php-learning/index.php. I guess I was supposed to know this through some sort of frigging osmosis.
XAMPP is definitely not user friendly. It's not that it was a difficult thing to do it's that the information on what to do was buried and I basically had to open every folder and every txt, ini and html file to find it. Very frustrating.
I haven't made it to the Laravel series yet. I'm still learning PHP. I will definitely remember to do this once I make it to the Laravel though. Thank you!