Varun Malhotra
asked on
How do Apache, PHP, and MySQL All Work Together?
This is something I am trying to grasp my head around.
Okay, so Apache simply servers files on a web server to clients. I fully understand that. But then if you install PHP, suddenly PHP code will be interpreted before those files are served by Apache. Then you install MySQL, and all of a sudden PHP can work directly with MySQL.
What is really done in the installation process that allows these three things to work so closely together? If Apache and PHP are separate programs, then how do they both work together on serving files?
Moreover, I understand that PHP is used to generate dynamic pages, but I've also heard people saying we're running a PHP based application.
Okay, so Apache simply servers files on a web server to clients. I fully understand that. But then if you install PHP, suddenly PHP code will be interpreted before those files are served by Apache. Then you install MySQL, and all of a sudden PHP can work directly with MySQL.
What is really done in the installation process that allows these three things to work so closely together? If Apache and PHP are separate programs, then how do they both work together on serving files?
Moreover, I understand that PHP is used to generate dynamic pages, but I've also heard people saying we're running a PHP based application.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just a final note here:
Because some licensing problems, php's default interface with mysql databases is no more the one named mysql, but a different one named mysqli
Because some licensing problems, php's default interface with mysql databases is no more the one named mysql, but a different one named mysqli
Varun,
You should close this question now, allocating points to ansxer(s)
You should close this question now, allocating points to ansxer(s)
ASKER