E.7. Configuring php.ini (All Platforms)
Everything about the behavior of your PHP environment is set up in the file php.ini. On the Windows system, this file
is usually located in the C:\Windows\ directory. On Mac OS X and other UNIX-based platforms, this file is in the /etc/
You can edit this file directly with an editor such as Notepad on Windows or TextEdit on Mac OS X and vi or emacs on
most UNIX platforms.
If you modify the php.ini file with an editor, you will notice that it is just a text file consisting of name=value lines,
also known as name–value pairs. Lines that start with a semicolon are comments and are ignored by the system.
To change the behavior of your PHP environment, simply change the appropriate value in the php.ini file. Table E.1
lists some of the more common configuration options.
Table E.1. php.ini Configuration Options
short_open_tag If this is on, you can use a short tag to indicate the beginning of a PHP code
E.9. Installing MySQL on Linux/UNIX
For Linux platforms, the MySQL Server is provided as an RPM package. Most Linux platforms will have an RPM
package manager provided for installation of this package.
Detailed Linux installation instructions can be found at http://dev.mysql.com/doc/refman/5.0/en/linux-rpm.html.
E.10. Installing MySQL on Mac OS X
To install MySQL Server on Mac OS X, please visit http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html
E.11. Read the Manual
The installation instructions change from version to version. If you run into problems, please read the manual that comes
with the download archive. Configuration settings that were turned on in the past, might now be turned off, and although
the directory structure might change, the manual is usually up to date.
Look for a file called README or INSTALL. They are usually text files and contain all the installation details.
Prentice Hall PTR warrants the enclosed CD-ROM to be free of defects in materials and faulty workmanship under normal
use for a period of ninety days after purchase (when purchased new). If a defect is discovered in the CD-ROM during this
warranty period, a replacement CD-ROM can be obtained at no charge by sending the defective CD-ROM, postage
prepaid, with proof of purchase to:
Pearson Technology Group
75 Arlington Street, Suite 300
Boston, MA 02116
Prentice Hall PTR makes no warranty or representation, either expressed or implied, with respect to this software, its
quality, performance, merchantability, or fitness for a particular purpose. In no event will Prentice Hall, its distributors, or
dealers be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use
the software. The exclusion of implied warranties is not permitted in some states. Therefore, the above exclusion may not
apply to you. This warranty provides you with specific legal rights. There may be other rights that you may have that vary
from state to state. The contents of this CD-ROM are intended for personal use only.
More information and updates are available at: http://www.phptr.com/
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.