Pages

Mar 13, 2010

Installing PHP (Part 1)


Before getting started with the PHP language, you must first acquire, install, and
configure the PHP interpreter. PHP is available for a wide range of platforms and
works in conjunction with many servers.
In this hour, you will learn
Which platforms, servers, and databases are supported by PHP4
Where to find PHP and other useful open source software
One way of installing PHP on Linux
Some options that add features to your PHP binary
Some configuration directives
How to find help when things go wrong

Platforms, Servers, Databases, and PHP


PHP is truly cross-platform. It runs on the Windows operating system, most versions
of UNIX including Linux, and even the Macintosh. Support is provided for a range of
Web servers including Apache (itself open source and cross-platform), Microsoft
Internet Information Server, WebSite Pro, the iPlanet Web Server, and Microsoft's
Personal Web Server. The latter is useful if you want to test your scripts offline on a
Windows machine, although Apache can also be run on Windows.
You can also compile PHP as a standalone application. You can then call it from the
command line. We will concentrate on building Web applications, but
do not underestimate the power of PHP4 as a general scripting tool comparable to
Perl.
PHP is designed to integrate easily with databases. This feature is one of the factors
that make the language such a good choice for building sophisticated Web
applications. Many databases are directly supported, including Adabas D, InterBase,
we will be using a combination of Linux, Apache, and MySQL.
All these are free to download and use, and can be installed relatively easily on a PC.
You can find out more about getting Linux for your computer at
. If you want to run Linux
on a Power PC, you can find information about LinuxPPC at
.
MySQL, the database we will use in this book, can be downloaded from
. There are versions for many operating systems
including UNIX, Windows, and OS/2.
On the other hand, you can easily stick with Windows, NT, or MacOS. PHP is, after
all, a cross-platform scripting language.
Where to Find PHP and More
You can find PHP4 at . PHP4 is open source software, which
means that you won't need your credit card handy when you download it.
The PHP WebSite is an excellent resource for PHP coders. The entire manual can be
read online at , complete with helpful annotations
from other PHP coders. You can also download the manual in several formats.

Solid, dBASE, mSQL, Sybase, Empress, MySQL, Velocis, FilePro, Oracle, UNIX dbm,
Informix, and PostgreSQL. PHP also supports ODBC.

we will be using a combination of Linux, Apache, and MySQL.
All these are free to download and use, and can be installed relatively easily on a PC.
You can find out more about getting Linux for your computer at
. If you want to run Linux
on a Power PC, you can find information about LinuxPPC at
.
MySQL, the database we will use in this book, can be downloaded from
. There are versions for many operating systems
including UNIX, Windows, and OS/2.
On the other hand, you can easily stick with Windows, NT, or MacOS. PHP is, after all, a cross-platform scripting language.

0 comments: