Thabo Posted September 21, 2015 Share Posted September 21, 2015 Hi guys... I am struggling to connect to phpMyAdmin and I also cannot connect to localhost/xampp. This is the error I am getting: Warning: file_get_contents(lang.tmp): failed to open stream: No such file or directory in C:\xampp\htdocs\xampp\index.php on line 2Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\xampp\index.php:2) in C:\xampp\htdocs\xampp\index.php on line 4 Can someone please help me. Thank You. Quote Link to comment Share on other sites More sharing options...
Barand Posted September 21, 2015 Share Posted September 21, 2015 You connect to the mysql database server, not to PHPMyAdmin. The error you are getting is nothing to do with the db connection. Either the file does not not exist at all or it is not in the same folder as your script. You need to specify the correct path. The second error is because output was sent by the first error message and headers can only be sent before any output is sent to the browser. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.