2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of...

Preview:

Citation preview

2001 IT Conference Reno Page: 1

PHP 101

PHP – You can DO IT!

Greg LawlerBrooks Institute of Photography

February 15 20012001 IT Conference Reno

2001 IT Conference Reno Page: 2

Agenda

What is PHP? Functions and Features Lexical structure Why use PHP? PHP in the Real World Q & A

2001 IT Conference Reno Page: 3

What is PHP? 1994 : Personal project

Today Version 4 : powerful language Cross-platform, extensible, FAST GPL

HTML scripting language Server side, client transparent

2001 IT Conference Reno Page: 4

What is PHP? Built into Apache

As DSO – dynamic shared object mod_php

All other web servers As CGI binary

2001 IT Conference Reno Page: 5

Functions & Features Built in support for

Email, COM, FTP, XML, PDF, HTTP…

Extensive database support ODBC, MySql, Sybase, Oracle…

Over 1000 functions and 50 Modules!

2001 IT Conference Reno Page: 6

Lexical Structure Syntax derived from C, Perl, Java,

etc… Control structures

if, else, for, do while, switch etc…

Types Integers, strings, arrays, objects,

Classes (OOP) and Functions

2001 IT Conference Reno Page: 7

Why use PHP? Very easy to learn / teach

You can do anything! Cheap

Cross-platform, extensible, FAST

Great online community support

2001 IT Conference Reno Page: 8

PHP in the Real World amazon.com, xoom.com lycos.com

Brooks Institute Mayday!

Webmail

2001 IT Conference Reno Page: 9

Q & A

<html> <body> <?php

print “Hello World!"; ?> </body></html>

Recommended