PHP Chapter 1
PHP Chapter 1
To make web development easier by enabling server-side scripting that can generate dynamic
content based on user input.
7. What is xampp?
XAMPP is an open-source software package that contains Apache (web server),
MariaDB/MySQL (database), PHP (scripting language), and Perl. It provides an easy-to-use
platform for developing and testing web applications locally.
8. Define protocols?
Protocols are rules and standards that define how data is transmitted over a network.
9. What do you mean by HTTP and IP protocols?
HTTP (HyperText Transfer Protocol): A protocol used for transmitting hypertext (HTML)
over the internet, allowing browsers to request and display web pages.
IP (Internet Protocol): A protocol used to send data across a network, assigning unique
addresses (IP addresses) to devices to ensure data is routed correctly.
10. Explain why you do not see any PHP code when you view the source code of a
PHP page in the browser.
PHP is a server-side language, ie its code is executed on the server before the
resulting HTML is sent to the browser. As a result, the browser only receives the
output.
2. Write PHP code to display your Roll Number, Course Name and
Technology Name on the browser.
<?php
$roll_number = "12345";
$course_name = "Computer Science";
$technology_name = "PHP";
8. Web Server acts as a middleman between the Server and Client machines.
a) Server and Browser
b) Server and Client machines.
c) Browser and Client.
d) Client to Client.