By Programmer Blog http://programmerblog.
net/
Introduction to World Wide Web and basics of PHP
By http://programmerblog.net
ProgrammerBlog.Net http://programmerblog.net/
What is Internet and World Wide Web?
Internet – Global system of interconnected networks
It is a network of networks that consists of millions of private, public, academic,
business, and government networks of local to global scope.
Use TCP/IP to serve billions of users worldwide.
Voice over Internet Protocol (VoIP) and IPTV. Newspaper publishing, blogging, and
web feeds.
Human interactions through instant messaging, Internet forums, and social
networking sites.
www – Collection of interconnected documents and other resources
System of interlinked hypertext documents contained on the Internet.
http – Hyper Text Transfer Protocol
Hyperlink (or link) is a reference to a document that the reader can directly follow.
Hypertext is text displayed with references (hyperlinks) to other text that the reader
can immediately access
Protocol to transfer hypertext docs from server to client.
ProgrammerBlog.Net http://programmerblog.net/
Web Application Development
Web application development is the process and practice of
developing web applications.
Request / Response Model
In HTTP, web browsers or spiders typically act as clients, while an
application running on the computer hosting the web site acts as a server
Static vs. Dynamic web pages
Server Side Scripting Languages
J.S.P, ASP. Net Cold Fusion, Python, PHP
ProgrammerBlog.Net http://programmerblog.net/
W.A.M.P Installation
On windows WAMP or XAMPP can be installed
Web Server – Apache
Server Side Language – PHP
DBMS – MySql
PhpMyAdmin
ProgrammerBlog.Net http://programmerblog.net/
PHP History
Rasmus Lerdorf - Creator of PHP language
PHP - 1995 Collection of Perl/CGI scripts
PHP/FI was created by Rasmus Lerdorf in 1995, initially as a simple set of Perl
scripts for tracking accesses to his online resume
PHP/FI - 1997 Form Interpreter
Rasmus wrote a much larger C implementation, which was able to
communicate with databases, and enabled users to develop simple
dynamic Web applications .
Personal Home Page / Forms Interpreter
PHP 3.0 June 1998
lots of different databases, protocols and APIs,
Developers joined in and submit new extension modules
PHP: Hypertext Preprocessor.
ProgrammerBlog.Net http://programmerblog.net/
PHP History
PHP 4
Zend Engine Introduced in 1999
Support for Web servers
Object Oriented Programming
PHP 5
Zend Engine 2.0
XML and Web Services
Object Oriented Support
Exception Handling
A lot of new Features
ProgrammerBlog.Net http://programmerblog.net/
PHP History
PHP 7 – current version on PHP
is latest version of PHP with lot of improvement. Some of
new features are:
1. Speed
2. Type Declaration
3. Return Type Declarations
4. Error Handling
5. Spaceship Operator
6. Null Coalesce Operator
7. Unicode support for emoji and international characters.
8. Constant arrays using define()
9. Anonymous classes
10.Generator delegation
ProgrammerBlog.Net http://programmerblog.net/
Why PHP ?
Open Source – Linux – Apache - PHP - MySQL
One of top 5 most popular languages
Small – medium – enterprise level applications
Server Side Scripting
Command Line
Desktop Applications (PHP – GTK)
Available for Windows, Linux, Mac
Many Web Servers – Apache, IIS, nginx, Lighthttpd
Relational / No SQL Databases MySql, Oracle, MSSQL, mongoDB,
PostgreSql
Built in Support – Regex, XML and other functions math etc
Services – LDAP, POP3 and so on
ProgrammerBlog.Net http://programmerblog.net/
PHP – Online Popular Projects
PHP
Facebook - The world’s biggest social networking platform is written in
PHP.
150 million users and counting, and in my experience, significantly faster
and more stable than competing platforms written in other languages
(e.g. MySpace).
Yahoo! - formerly the world’s largest search engine. Yahoo! makes use
of PHP.
You Tube - the world’s biggest video sharing website uses PHP
technology.
Wikipedia - User contributed web encyclopedia has PHP elements.
Digg.com
Social news network.
Sourceforge.org
The world's largest Open Source software development web site.
Flickr.com
Online photo sharing and storing:
ProgrammerBlog.Net http://programmerblog.net/
PHP Configuration
PHP.ini
Php configuration file is read when php starts up. Values of different environment
variables can be set in php.ini file. Some of the features are:
Execution time
File upload size and so on
Session paths
Upload file size
Short tags
Error reporting
Safe mode
ProgrammerBlog.Net http://programmerblog.net/
PHP Basics: Code Blocks
Standard Tags: <?php …… ?>
Short Tags: <?........ ?>
ASP Tags: <%.....%> (Removed from php 7.0)
Script Tags
<script language=“PHP”></script> (Removed from
PHP 7.0)
Interesting, right?
This is just a sneak preview of the full presentation. We hope you like it!
To see the rest of it, just click here to view it in full on PowerShow.com.
Then, if you’d like, you can also log in to PowerShow.com to download
the entire presentation for free.