Results 1 to 2 of 2
Hello! I m new to the Open Source Environment... Just started learning it. I wanted to know how that PHP talks to Web Server and Database Server? I have read ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-14-2004 #1
- Join Date
- Aug 2004
I m new to the Open Source Environment... Just started learning it.
I wanted to know how that PHP talks to Web Server and Database Server?
I have read some general stuff... but the idea is not very clear.
somebody please help me in understanding who talks with who using what? What are the components that carry out the conversation.
Hope to get an understandable responce.
Any tips for newbiees r also welcome!
- 08-14-2004 #2
- Join Date
- Apr 2003
- London, UK
You webserver (apache most likely), loads a PHP module and is configured such that when a request is recieved for a page with a .php extension the webserver passes it to the PHP module to deal with. the php module parses the PHP code and "executes" it - ie carries out the instructions within. Database connectivity is done through PHP which can be compiled to include the MySQL libaries which allows it to talk to mysql. Once the page has been parsed it is passed back to the webserver which sends it back to the HTTP client.