LAMP/PHP Lecture Illustrations

Installation/Administration Apache/PHP
  Installation Guide Available Later
 

Punch Cards lead to JCL 1960's

Unix Bourne Shell 1970's ("JCL" with Algol Like Flow Control Features)

Scripting Lanuages are typeless and execute "Scripting 21st Century Language?"
many instruction (table halfway down) per statement

Typical Application Level Scripting Instruction may Executes 100,000 instructions/statement. Application Level Scripting Languages are glue that hold application together and make it extensible.


Perl 1987 Timeline History | Perl History

Webmin is written in Perl.

TCL/TK
Python scripting language for GUI web administration.

Short Discussion on Popular Scripting Langauge AWK, Perl, PHP, Python, Ruby, TCL/TK

Ruby Latest and Greatest OOP Scripting Language

 

PHP Today

Good Discussion on Various PHP Extensions

  • Pear PHP PHP Extension and Application Repository
  • PHP-GTK (Gimp ToolKit) GUI Toolkit for Client Side PHP
  • PECL (Pickle) PHP Extensions (For PHP 4.0) C Language
    PHP Extension Community Library - Pear & PECL are siblings

PHP Programming Language of 2004

 
 
 
 

 

   

 

Chapter 2

 

  Apache, PHP, Dreamweaver Presentation
   
   

 

Chapter 4 Building Block of PHP

 

 

Table 4-1 PHP Tags page 79 - Site has Examples Scroll Down

PHP SuperGlobals - predefined variables always present

PHP Six Data Types| typecasting and description of data types scroll 1/2 down

 

 

PHP Operators Table 5.2 Reproduced using operator.php

ShortCut Table 5.3 Shortcut Operators

Comparison Operators Table 5.4

Logical Operator Tables not, and, or & xor

 

PHP Predefined Constants

   
Chapter 5 Working With Functions
 

List of PHP Functions with Search Capabilities

function_exists( function name )

 

 

Chapter 8 Working with Strings, Dates and Times

 

  PHP String Reference
   

 

Chapter 9 Working with Forms

 

  HTML Form Data <form> <input type="text|button|submit|reset|checkbox" name="Identifer" >
  $_POST associative array passed to current script via the http POST method
 

Complete Header Field Definitions | Quick Reference HTTP Headers

void header( String HTTP_Header [, bool replace [, int http_response]] )

  <form Attribute Name = Attribute Values
   

SQL

   
   


Show below are the six different data types:

  1. integer [a whole number]

  2. double [floating point number]

  3. string [a collection of characters]

  4. boolean [true or false]

  5. array [a collection of variables]

  6. object [an abstract data type made up of variables and functions]


PHP Operators

Operator

Name

Example

Example Result

+

Addition

10+3

13

-

Subtraction

10-3

7

/

Division

10/3

3.3333333333333

*

Multiplication

10*3

30

%

Modulus

10%3

1

Short Cut Operators

Operator

Before

Example

Value

+=

10

$x += 5;

15

-=

15

$x -= 5;

10

/=

10

$x /= 5;

2

*=

2

$x *= 2;

4

%=

4

$x %= 5

4

/=

4

$x .= " Test"

4Test

Comparison Operators

Operator

Name

Returns True if

Example ($x is 4)

Result

= =

Equal

Left and Right Are Equal

$x == 5;

 

! =

Not Equal

Left and Right Not Equal

$x != 5;

1

= = =

Identical

Equal and Same Type

$x === 4

1

= = =

Not Identical

Not Equal &/or Not Same Type

$x === '4'

 

>

Greater Than

Left is greater than right

$x > 4

 

>=

Greater Equal

Left is greater equal than right

$x >= 4

1

<

Less Than

Left is Less than right

$x < 4

 

<=

Less Than or Equal

Left is Less Than or Equal

$x<=4

1

On Echo 1 is true; null is false