Localhost Newbie Question |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Databases & MySQL |
||
Localhost Newbie Question |
||
Mar 17 2011, 03:53 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 17-March 11 Member No.: 182,389 |
I started building a site with php using xampp (for mysql and apache). I tested it using a database i created on the xampp php my admin. To connect to it i had to use localhost as a server which made complete sense to me cuz the database was on my computer. Now i wanted to progress a little and build the database online for when i bring my server online. I created the database, and wrote a few tables, i could then log on and admin and edit them no problem. Only problem is now i can't connect to it thru php. Now my real question is why is the hostname on the server for Zymic localhost when it's online and not on my local disk and how is php supposed to know where the database is if i never gave it an address for the site. How come the hostname is localhost no matter where the DB is located? Maybe if i understand that i can understand why my database won't connect.
|
|
|
shirotensaki Localhost Newbie Question Mar 17 2011, 03:53 PM
Leonid@samisu I guess the address "localhost" is inten... Mar 18 2011, 02:43 PM
pram3835 Resp All, I have registered and created my page on... Mar 18 2011, 02:46 PM
Leonid@samisu Well, I have found an answer to my own question:
... Mar 18 2011, 02:57 PM ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 19th June 2013 - 07:35 PM |