I have:
<?php define('DB_SERVER', 'localhost')
If I put this constants.php file on my web host’s server, is it still ‘localhost’? Or something else.
I use hostmonster.com for my website. Does that replace localhost?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you should still use ‘localhost’ to connect to the database server.
Have a look at the hostmonitor help, ‘Using the database’.
https://my.hostmonster.com/cgi/help/6
Using the Database
Obviously, use your own database username and database name 🙂
(The ones you got when creating the database)