PHP Presentation 1 (Intro, Installation, Basics)
PHP Presentation 1 (Intro, Installation, Basics)
Presented by
Archie G. Santiago
Arellano University
Professor – Computer Science D
INTRODUCTION TO PHP
WHAT IS PHP?
✓ ApacheFriends XAMPP
✓ Apache
✓ MySQL
✓ PHP
✓ Perl
✓ SQLite
✓ PHPMyAdmin
* System Requirements:
+ 2 GB RAM (recommended)
+ 850 MB free Fixed Disk
+ Supports: Windows 2008, 2012, Vista, 7, 8, 10
(Important: XP or 2003 not supported)
QUICK INSTALLATION
NOTE:
example: localhost/mywebpage
REMINDERS:
Declaring PHP:
•A PHP scripting block always starts with <?php
and ends with ?>. A PHP scripting block can be
placed anywhere in the document.
<script language="php">
PHP Code In Here
</script>
PHP SYNTAX
Syntax:
a. echo b. print
echo “your text here” print(“Your text here”);
echo $variable print($variable);
In the given example we have used the echo
statement to output the text “WELCOME TO
PHP".
VARIABLES IN PHP
<html>
<body>
<?php
$txt=“COMPUTER SCIENCE";
echo $txt;
?>
</body>
</html>