Unlike client-side languages such as HTML, CSS, and JavaScript, which are processed directly by your web browser, PHP is a ________. This means your browser doesn’t understand PHP instructions on its own.
server-side scripting language
examples of web server
Apache
Nginx
this acts as intermediary when you make a request to a webpage that contains PHP code
Web server
it receives the request, identifies the PHP file, and then passes it to a PHP interpreter
a web server
this executes all the PHP commands, performing tasks like fetching data form a database, processing forms, or generating dynamic content
PHP interpreter
it generates plain HTML, CSS, and JavaScript, which the web server then sends back to your browser
PHP interpreter