Question:
LocalHost Problems when trying to open php server?
2013-06-13 13:43:52 UTC
Hello
I have a little problem here, there is a site that's running on live, but i need to make some changes and i've installed XAMPP server and it works fine when i create .php file with "this is test", but when i try to open one of the site files ( which is working properly on live) it gives me
Notice: Undefined index: exit in C:\xampp\htdocs\
Warning: mysql_connect(): Access denied for user (using password: YES) in C:\xampp\htdocs\
Notice: Use of undefined constant GALLERIES2 - assumed 'GALLERIES2' in C:\xampp\htdocs\
Notice: Undefined index: mobile in C:\xampp\htdocs\
Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\
Warning: mysql_error() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\

What should i do to view this code and use "LocalHost" for test
Three answers:
2013-06-13 18:19:45 UTC
Do a search in your code for mysql_connect, make sure that the connection details are correct.

Using "localhost" as the server address might not work depending on your configuration.
Chris
2013-06-13 13:47:22 UTC
In order to properly test a site that uses a database, you need to copy the database to your local server, too.

You can do this by exporting it and importing it in http://localhost/phpmyadmin



Not sure what "running on live" means though, so I can't help you with that.
?
2016-11-10 00:04:43 UTC
Hypertext Preprocessor information are information with Hypertext Preprocessor code, so which you prefer to be certain the code you should use a text textile editor like EditPlus, Notepad++ or the different text textile editor. in case you prefer to be certain what the Hypertext Preprocessor record is doing / producing you may desire to set up a information superhighway server (you are able to attempt apache).


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...