You are on page 1of 31

Topics To Be Covered

Introduction to PHP
Introduction to Programming
Introduction to Programming Languages.
Types of Computer Programs/Applications
Types of Programming Languages.
Client Server Architecture.
Introduction to Web Servers and Clients.
Installation
What Is PHP?

PHP is a recursive acronym for (PHP:


Hypertext Preprocessor) is an open
source, server-side, cross-platform,
scripting language used to create dynamic
web pages.
History Of PHP
PHP first appeared in 1995
Founded by Rasmus Lerdorf
PHP originally stood for Personal Home
Page, it now stands for PHP: Hypertext
Preprocessor, which is a recursive acronym.
http://php.net/manual/en/history.php.php
Why PHP ???
As of January 2013, PHP was installed on
more than 244 millionwebsite and 2.1
millionweb servers
Open Source
Cross-Platform
Its Free
Easy to Learn
What Is Language?
A Language is a system of communication. Commonly
used to exchange knowledge, opinions, commands and
feelings.
It can be written, oral or gestural kind of
Communication.
How To Talk To A Computer?
What Is Programming?
A computer program is a
set of instructions
programming is the ability to take
this idea in your head, break it apart
into its individual pieces and know
how to write those pieces
turn right
drive one mile
turn left on bank
take the second
right
fourth house on the
left
turn right
drive one mile
200 + 300 = 500

X
Statements
BASIC LET Balance = 500

AppleScript set balance to 500

Java balance = 500;

COBOLMOVE 500 TO BALANCE

PHP $balance = 500;


What Is A Programming Language?

A programming language is a set of


rules that provides a way of telling a
computer what operations to
perform
C
C++
C#
Java
JavaScript
Perl
PHP
Python
Objective-C
Ruby
Visual
basic
Hexadecimal
6A
10
04
0C
55
48
EC
00
14
4C
48
00
00
00
00
00
14
00
89
48
00
48
8D
Assembly Language
.MODEL SMALL
.STACK 100h
.DATA
A DW 2
B DW 5
SUM DW ?
.CODE
MAIN PROC
;----------------------------> INITIALIZE DS
MOV AX,@DATA
MOV DS,AX
;----------------------------> ADD A AND B - PLACE RESULT IN SUM
MOV AX,A
ADD AX,B
MOV SUM,AX
;----------------------------> EXIT TO DOS
MOV AX,4C00h
INT 21h
MAIN ENDP
END MAIN
JavaScript,
ActionScript
High-Level
Ruby, Python, PHP Languages

Java, C#, VB.NET

Objective-C

C++

C
Low-Level
Assembly Language Languages

Machine code
CPU
WRITING SOURCE CODE
PHP
<?php
echo Hello, World;
?>
Language Examples
Compiled C, C++, Objective-
C

Interpreted PHP, JavaScript

Hybrid Java, C#, VB.NET,


Python
The World Wide Web
In 1989, Tim Berners-Lee had
suggested a way to let all users,
but particularly scientists,
browse each others papers on
the Internet.
He developed HTML, URLs,
and HTTP.
Basic Web Architecture
The web is a two-tiered architecture.
A web browser displays information
content,
and a web server that transfers
information to the client.
Web Browser (Client)
The primary purpose is to bring
information resources to the user.
An application for retrieving,
presenting, and traversing
information resources.
Web Server
The term web server or webserver
can mean one of two things:
A computer program that accepts HTTP
requests and return HTTP responses
with optional data content.
A computer that runs a computer
program as described above.
Clien
t
http://www.google.com/inde
Respon x.html
se

Web
.html
Server

Databas
e Mail
Server

File
System
Clien
t
http://www.google.com/inde
Respon x.php
se

. Web
php Server

Databas
e Mail
Server

File
System

You might also like