Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

Introduction to

World Wide Web


and basics of PHP
 Internet – Global system of
What is interconnected networks
Internet and  www – Collection of
World Wide interconnected documents and
Web other resources
Web
Application
Development
 On windows WAMP or XAMPP can be
installed
 Web Server – Apache
XAMPP  Server Side Language – PHP
Installation  DBMS – MySql
 PhpMyAdmin
 Open Source – Linux – Apache - PHP –
MySQL
 One of top 5 most popular languages
 Small – medium – enterprise level
Why PHP ? applications
 Server Side Scripting
 Command Line
 Available for Windows, Linux, Mac
 Relational / No SQL Databases MySql,
Oracle, MSSQL, mongoDB,PostgreSql.
<?php echo
Hello world “Hello World”;
?>
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line
Test PHP
</p>
<?php
echo “This is a PHP line”;
phpinfo();
?>
</body></html>
<html>
<head>
<title>Greetings</title>
</head> <body>
<h1>Greetings</h1> <p>
Variables
<?php
$person = "Ian";
$Person = "Dominic";
echo "Hello $person and $Person";
?> </p> </body> </html>
<?php
$a = 3;
$b = 5;
Operators $c = 8;
$d = 15;
echo ($d - $a) + $b * $c;
?>
<?php
$a = 5;
$b = 10;

if($a > $b)


{
Loops
echo "True";
} else
{
echo "False";
}
?>

You might also like