9
2001 IT Conference Reno Page: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

Embed Size (px)

Citation preview

Page 1: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

2001 IT Conference Reno Page: 1

PHP 101

PHP – You can DO IT!

Greg LawlerBrooks Institute of Photography

February 15 20012001 IT Conference Reno

Page 2: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 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

Page 3: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

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

Page 4: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

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

Page 5: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

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!

Page 6: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

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

Page 7: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

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

Page 8: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

2001 IT Conference Reno Page: 8

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

Brooks Institute Mayday!

Webmail

Page 9: 2001 IT Conference RenoPage: 1 PHP 101 PHP – You can DO IT! Greg Lawler Brooks Institute of Photography February 15 2001 2001 IT Conference Reno

2001 IT Conference Reno Page: 9

Q & A

<html> <body> <?php

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