Rookie question from a (less than) rookie designer (MySQL, APACHE, PHP)

Just found a book upon MySQL, APACHE and PHP and it may not be really clear to the relationship among the three. I’m considering designing a data source driven web-site and I feel that I have a decent handle on the MySQL and PHP will be but I’m not really sure if We would like to install APACHE at my PC. Right now, I’m trying to get up and running with MySQL in addition to PHP so I could use the book to undertake the exercises plus learn the requires.
I obtain the feeling that APACHE is not required for this which the future coordinator of my web-site will give you that functionality. Is niagra correct or ‘m I way away from Also, can WE play around with MySQL and PHP devoid of APACHE installed on my PC.
Any help is going to be appreciated. Thanks.

Apache is a server you’ll be able to install on your own pc. If you wish to test php webpages locally, then you require apache, or some other down loadable device, but Apache is the standard and most trustworthy. So to do testing on your own machine, then it is advisable to install Apache, MySQL, and PHP on your hard disk. You can certainly not view php webpages by previewing in the browser like you’ll be able to with html web pages, they must tell you a server, since php is a server side scripting language.

You can find all in you installations like Xampp, and also Wamp. These will set all 3 on your own machine. Some prefer setting up the 3 seperately general health can customize a number of the configurations. I installed Xampp and it went pretty smooth for any beginner in php. Really the only thing that genuinely tripped me up rather was setting the actual admin password, sounds stupid nevertheless it got me puzzled!

In addition, you can prevent all this and test drive it online thru ones host. If you’ve broadband connection and also a good ftp (like Dreamweaver), you’ll be able to test that technique.

And so, to sum upward…
MySQL and PHP have to go thru some sort of server, that’s where Apahe also comes in. PHP uses mysql sources to " get" info running scripts, so all 3 have interaction.

A typical process if you view a page written in PHP:

  1. Your browser transmits a request on the web server (Apache)
  2. Apache recognizes that you requested a. php record, and passes the request to PHP.
  3. Your PHP signal is invoked, as well as your code likely connects to MySQL and also runs some problems.
  4. MySQL executes the queries and returns results to your PHP.
  5. Your PHP generates some output (HTML), which can be passed back that will Apache
  6. Apache sends the HTML to the browser as well as the connection is d.

If this page is composed well, the entire exchange will take milliseconds.

Apache and MySQL are generally both servers in this they’re running continuously, listening for requests. Apache receives all requests manufactured by your browser, and MySQL (in that case) is hearing for requests constructed from your PHP. PHP is probably a language plus a parser; it’s definitely not listening for everything but Apache invokes it when the item determines that it’s was required to handle the ask for.

Of most things, you should read what sort of HTTP protocol functions. It’s very simple yet it appears most people have no idea of it. Once you become how HTTP performs, it will make loads of sense.

Also no, not the 7 layers! =-O.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *