PHP: 00 - Introduction

What is PHP

  • Server-side, scripting language

  • Designed for use with HTML

  • Provides more flexibility than HTML alone

  • Syntax is similar to C, Java, Perl

Versions

  • Version 1: 1994

    • CGI binaries in the C programming Language

  • Version 2: 1995

    • Personal Home Page Tools

  • Version 3: 1998

    • PHP: Hypertext Preprocessor

    • Supported, not actively maintained

  • Version 4: 2000

    • Still actively support by updates

    • V4.4.6 on March 1, 2007

    • Supported/ Actively Maintained

  • Version 5: 2004

    • The latest version, still be developed

    • Version 5.2.1 on February 8, 2007

    • Supported/ Actively Maintained

Why Use PHP

  • Open Source / Free software

  • Cross platform to develop, to deploy, and to use

  • Powerful, robust, scalable

  • Web development specific

  • Can be object oriented, especially version 5

  • Great documentation in many languages

  • Large, acrive developer community

    • 20 million websites

Requirements

  • Web Servier ( Apache 1.3)

  • PHP (v 5.2.1)

  • Database (5.0)

  • Text Editor (Npp)

  • Web Browser (Firefox)

 

Installation Overview

 

  • XAMPP

    •  

  • PHP.ini

    •  

  • MYSQL root password

  • Editor - KomodoEdit?

Issues

  • MySQL Admin button inop

  • Open Apache Admin

  • MySQL.EXE command line tool

    • Must go to phpMyAdmin and create passwords

    •  

PHP Syntax

PHPInfo()

 

<?php phpinfo();?>

 

PHP Version 5.3.5

 

System

Windows NT E6510 6.1 build 7601 (Unknown Windows version Ultimate Edition Service Pack 1) i586

Build Date

Jan 6 2011 17:50:45

Compiler

MSVC6 (Visual C++ 6.0)

Send to HTML page

<?php echo “Hello World”; ?>

Operational Trail

Tags