INTRODUCTION

Site Home
LAMP Home
PHP Console Home
Getting Started
PHP Reference
Download Tutorial

LESSONS

01 Hello World!
02 Text I/O
03 Arithmetic
04 IF Statement
04 (b) Data Types
05 FOR Loop
06 Functions
07 While Loop
08 Do Loop
09 PHP Reference
10 Array
11 Classes
12 Menu
13 File I/O
14 Factorial N

MORE PHP

PHP in web pages
PHP and MySQL

PHP Tutorial for Complete Beginners

Getting Started

  • Download the PHP 5 Windows binaries (7.4 MB) - php-5.0.0-Win32.zip - from the php site.
  • Download the PHP manual (4.6 MB) - php_manual_en.chm - from the php site.
  • Download this tutorial including a simple Windows Development Environment.
  • Extract all the archives into the same folder. For example ...
        C:\php5\ on a standalone machine
        P:\bin\php5\ on a read-only network share - this share should have a drive letter.
  • Edit PhpIde.ini and make sure the location of php.exe is correctly specified. (Only one line needs to be modified.)

  • Run PhpIde.exe and enter your first program (screen shot below).
  • The F9 key runs your code. (You need to have edited PhpIde.ini correctly (above).
  • The F1 key brings up the PHP manual (You need to have downloaded it to the right folder).
  • The F2 key brings up the help file.

It is possible to run PHP command line applications on a Windows network without installing PHP 5 on every workstation. Just unzip php-5.0.0-Win32.zip in a shared network folder. We map our P: drive to the shared material on our network and these php files are in a read-only sub-directory. Create a shortcut to PhpIde.exe for the users. We placed this on our Intranet.