English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have installed mysql, php and apache on my computer. how do I related them to each other cocerning the localhost? how do i make whatever i make on mysql to show on my localhost? if i create a php file, where do i save it? on my localhost? How do I saved it?

2007-03-02 05:26:49 · 2 answers · asked by art_007 1 in Computers & Internet Programming & Design

2 answers

This is just a "getting started" response. First set up Apache and get it working. Then add in PHP. Then MySQL. Once you've set up apache, make a file called test.htm, put it in whatever you told apache the root directory would be, and have it look like so (4 lines):


First page
Hi mom


Now go to your browser and into the address bar put either:
localhost/test.htm
or
127.0.0.1/test.htm
localhost (synonymous with 127.0.0.1) is a special address that points to the machine that the browser is running on.
If you don't get a page with Hi mom on it, then you haven't set up Apache correctly (or you put test.htm into the wrong place).

Once that works, you are ready for hooking up php. To do that, go to http://php.net/install and start reading the documentation.

2007-03-02 05:53:50 · answer #1 · answered by Quadrillerator 5 · 1 0

Apache is the web server
MySQL is the database server
PHP is the scripting language

You web server will serve pages to clients (your browser), your pages will include the scripts, your scripts could fetch some data or insert data to database.

if the web server is installed on your local machine you can access the pages by typing http://localhost/
HTML pages and php files will reside on your web folders, it depends on how you have configured Apache

do some reading about it. Search the Internet :)

2007-03-02 13:47:32 · answer #2 · answered by tenatuntitled 2 · 1 0

fedest.com, questions and answers