Can a local html/php file access a local mySQL database?

@ferdzNK (3211)
Philippines
September 11, 2008 8:51pm CST
Is it possible to create a html with php or php alone and access a local mySQL database to produce a very dynamic webpage on a stand alone computer or do we have to configure our computer as a server? Has anybody already created one?
6 responses
@mtsandeep (1586)
• India
12 Sep 08
I think we need to write codes for making connection with the database. I use wamp server to check my dynamic pages which i use to learn the how the website will work when hosted. I don't know much about the coding and all.
1 person likes this
@ferdzNK (3211)
• Philippines
12 Sep 08
Wow magnificent tip there my friend. I've search that Wamp Server and it is a free mock up server environment complete with Apache, php and mySQL. It mimic the online environment great for testing web pages before making it live. I know very little, next to nothing about php coding, I thought html would be just fine with me but the dynamic nature of php in accessing database is really very wanting. With this wamp server, learning php would be more attainable. Again, thank you very much.
@mtsandeep (1586)
• India
12 Sep 08
HEY sorry for the repeated responses, i am using my mobile for posting and this happens to me all time. Why don't you check some open cms which match your website needs. There are lot of good ones available, i am too learning about websites and hosting.
1 person likes this
@mtsandeep (1586)
• India
12 Sep 08
I think we need to write codes for making connection with the database. I use wamp server to check my dynamic pages which i use to learn the how the website will work when hosted. I don't know much about the coding and all.
1 person likes this
• India
18 Oct 08
The best tip I can give you is use of Xampp server Xampp provides you apache, mysql and filezilla ftp server all for free and then you can use phpmyadmin for sql functions I have not tried for my own computer, but I have tried for a remote server
@tintusam (1168)
• India
24 Oct 08
yes i think, for that you should configure your computer as a server. am not sure about it. for dynamic web pages you can use the php language. for other computers to accessing the database your computer should be connected with the internet.that is, local host is for only that computer.
@mtsandeep (1586)
• India
12 Sep 08
I think we need to write codes for making connection with the database. I use wamp server to check my dynamic pages which i use to learn the how the website will work when hosted. I don't know much about the coding and all.
1 person likes this
@tisty2008 (158)
• China
13 Sep 08
If you have installed the php server like Apache.You just visit the localhost to access your website.