Professional Documents
Culture Documents
Name: Date:
Grade/Section: Rating:
Teacher:
CONCEPTS
PHP
- PHP (recursive acronym for PHP: Hypertext Preprocessor) is widely used
open source general-purpose scripting language that is especially suited for
web development and can be embedded into HTML.
- May 1998, A Netcraft survey indicated that nearly 60,000 domains reported
having headers containing “PHP”.
WHAT DO WE NEED?
FOR PC
LOCAL SERVER (XAMPP)
1. How to Install XAMPP
1. Open your browser and type XAMPP
2. Click XAMPP Installers and Downloads for Apache Friends
3. Choose XAMPP version base of the OS of your PC (Windows, Linux, OS X)
4. After downloading, locate the file and install it. Double click and run as
administrator.
5. A pop-up window for set up will appear, click next, next … and select allow
access if there a pop out window appear. Wait until installation finished.
6. After the installation, open the XAMPP control panel by searching it and run
it as administrator.
7. On the XAMPP control panel, start the Apache and MySQL
8. You can start coding
VISUAL STUDIO CODE (ANY TEXT EDITOR)
How to Install Visual Studio Code
1. Open your browser and type code.visualstudio.com
2. Click download
3. After downloading the installer, locate the file location and install it.
Note: Do not download the KSWEB on the app store because it is not free. Open
your browser and download the MOD apk. Type KSWEB mod apk.
PHP script is executed on the server, and the plain HTML result is sent back to the
browser.
<?php
// PHP code goes here
?>
ARELLANO UNIVERSITY – PLARIDEL CAMPUS
53 General Kalentong St. Mandaluyong
Senior High School
Dynamic Learning Program
A PHP file normally contains HTML tags, and some PHP scripting code.
Example
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
QUESTIONS/ACTIVITY QUESTIONS:
1. What does PHP mean? Hypertext Preprocessor
2. What is the local server used in PC?XAMPP
3. Where do we find the htdocs folder? C:/xampp/htdocs
4. How does PHP code start? <?php
5. How does PHP code ends? ?>
ASSESSMENT/
APPLICATION 1. Enumerate the Advantages and Disadvantages of PHP programming
language
Open Source and Free of Cost: One of the most vital advantages of PHP is
that it is accessible to all. People can download it from an open-source and
get it for free. One can download it anywhere and readily use it for web
application development.
Easy loading: One can load the PHP-based applications easily and connect
them to a database. People mainly use it since it has a fast rate of loading
even if it is over a slow internet connection and speed than other
programming languages.
User-friendly: It has a less learning curve, and one can learn it quickly. The
language is straightforward to use, and if one knows about C programming,
they can catch on to PHP language quickly for application development.
Stable: Unlike other scripting languages, PHP is very stable over the years
and can provide one with assistance and continuous support. They can get
help over various versions as well.