PHP Chapter 1 Introduction Survey Have you ever written a web - - PowerPoint PPT Presentation

php
SMART_READER_LITE
LIVE PREVIEW

PHP Chapter 1 Introduction Survey Have you ever written a web - - PowerPoint PPT Presentation

MCIS/UA PHP Training 2003 PHP Chapter 1 Introduction Survey Have you ever written a web application? Have you used any of the following languages? C PHP C++ Java Perl Have you ever written an object-oriented


slide-1
SLIDE 1

PHP

PHP Training 2003 Chapter 1 Introduction

MCIS/UA

slide-2
SLIDE 2

PHP

  • Have you ever written a web application?
  • Have you used any of the following languages?
  • C
  • C++
  • Java
  • Perl
  • Have you ever written an object-oriented

program?

Survey

slide-3
SLIDE 3

PHP

  • PHP
  • Web Application concepts and techniques
  • MU Libraries

Agenda for the course

slide-4
SLIDE 4

PHP

Presentation Library

slide-5
SLIDE 5

PHP

Presentation Library

slide-6
SLIDE 6

PHP

Presentation Library

slide-7
SLIDE 7

PHP

Presentation Library

slide-8
SLIDE 8

PHP

Presentation Library

slide-9
SLIDE 9

PHP

Presentation Library

slide-10
SLIDE 10

PHP

Authentication

slide-11
SLIDE 11

PHP

Authentication

check_authenticated_user( array('application_name' => $cfg_appname, 'session_name' => $cfg_sessionname, 'add_nav_func' => 'add_nav', 'xslt_name' => $cfg_xslt, 'was_enabled' => 1, ));
slide-12
SLIDE 12

PHP

  • Support
  • Stability
  • Compatibility
  • Features
  • Cost

Why change?

slide-13
SLIDE 13

PHP

What is a Web Application?

  • Goal: Dynamically generated HTML
  • Server-side
  • Stateless
slide-14
SLIDE 14

PHP

What is PHP?

  • Personal Home Page Tools
  • PHP: Hypertext Preprocessor
  • 1995 - version 1.0
  • Web application development environment
  • similar to Cold Fusion, JSP
, ASP , Web Objects, ...
  • Server-side
  • Open-Source
  • Free
slide-15
SLIDE 15

PHP

What is PHP?

  • Supported?
  • Zend
  • Internet
  • Can be embedded in HTML
  • Compiled at run-time
  • C-derived syntax
  • similar to C, C++, Perl, Java, etc.
  • Object-oriented
slide-16
SLIDE 16

PHP

What can PHP do?

  • Platforms
  • Linux, FreeBSD, Sun Solaris, HP/UX, IBM AIX,
MS Windows, Mac OS X, ...
  • Apache, Microsoft IIS, Netscape/iPlanet, ...
  • Databases
  • Oracle, Sybase, DB2, MySQL, PostgreSQL, Ingres,
dBase, ODBC, Adabas D, ...
slide-17
SLIDE 17

PHP

What can PHP do?

  • Output
  • HTML, XML (SAX and DOM), XSLT, PDF, GIF,
JPG, PNG, Flash, ...
  • Protocols
  • LDAP
, IMAP , SNMP , NNTP , POP3, WDDX, SOAP , CORBA, IRC, FTP , SMTP , SSL, ...
  • E-commerce
  • Cybercash, CyberMUT,
VeriSign Payflow Pro, CCVS, ...
slide-18
SLIDE 18

PHP

What can PHP do?

  • Encryption
  • Blowfish, Cast-256, CRC32, CRC32B, DES, Enigma, Gost,
HAVAL128, HAVAL160, HAVAL192, HAVAL224, HAVAL256, LOKI97, MD5, Panama, RC2, RC4, RC4-iv, Rijndael-128, Rijndael-192, Rijndael-256, RIPEMD160, Saferplus, Safer- sk64 xtea, Safer-sk128, Serpent, SHA1, SSL, Threeway, TIGER, TripleDES, Twofish, Wake
slide-19
SLIDE 19

PHP

Web Development Application Usage

Cold Fusion PHP WebObjects JSP Perl ASP 10,478,951 18,748,190 1,503,133 2,543,689 2,835,762 29,371,084
slide-20
SLIDE 20

PHP

First Program

<html> <head> <title>First Program</title> </head> <body> <p> <?php print “My first PHP program.”; ?> </p> </body> </html>
slide-21
SLIDE 21

PHP

  • 1. FTP to: admsol03.mcs.muohio.edu
  • 2. Change directory to:
/usr/local/www/share/htdocs/phpapps
  • 3. Create a new directory with your uniqueId. Change into
that directory.
  • 4. Save the program as: first.php
  • 5. Try the program at:
http://webdev.admin.muohio.edu/ phpapps/uniqueId/first.php

First Program

slide-22
SLIDE 22

PHP

First Program

<html> <head> <title>First Program</title> </head> <body> <p> <?php print “My first PHP program.”; ?> </p> </body> </html>
slide-23
SLIDE 23

PHP

First Program

<html> <head> <title>First Program</title> </head> <body> <p> <?php print “My first PHP program.”; ?> </p> </body> </html>
slide-24
SLIDE 24

PHP

First Program

<html> <head> <title>First Program</title> </head> <body> <p> <?php print $_SERVER[”HTTP_USER_AGENT”]; ?> </p> </body> </html>
slide-25
SLIDE 25

PHP

First Program

<html> <head> <title>First Program</title> </head> <body> <p> <?php phpinfo(); ?> </p> </body> </html>
slide-26
SLIDE 26

PHP

Homework #1

Rewrite your first program using only PHP <?php
  • utput all HTML here
?>
slide-27
SLIDE 27

PHP

References

http://www.php.net/ http://www.users.muohio.edu/covertka/php/ http://webdev.admin.muohio.edu/phpapps/ http://www.google.com/