Configuring your system (PHP) 305
With PHP 5, the extension that allows PHP to work with a MySQL
database server is not installed or enabled by default by the Windows
installer. You must install and enable it manually.
To install PHP 5 on a Windows system:
1.
If applicable, log into your Windows system using the Administrator
account.
2.
Download the Windows PHP 5.x installer from the PHP website at
www.php.net/downloads.php
.
3.
Double-click the installer file you downloaded and follow the onscreen
installation instructions.
4.
After PHP is successfully installed, download the Windows PHP 5.x zip
package from the PHP website at
www.php.net/downloads.php
, and
then extract the package in a temporary folder on your hard disk.
The zip package contains the extension you need to work with
MySQL.
5.
In the temporary folder containing the unzipped files, locate the folder
called ext and copy it to the C:\PHP\ folder.
The ext folder contains common PHP extensions, including the
MySQL extension.
6.
In the C:\Windows folder, locate the file called php.ini and open it in
Notepad.
You must edit this file to enable the MySQL extension.
7.
Find the following line in the php.ini file:
extension_dir = "./"
This line specifies where PHP looks for extensions.
8.
Edit the line as follows:
extension_dir = "
C:\PHP\ext\
"
9.
Find the following line in the php.ini file:
;extension=php_mysql.dll
The semicolon (;) at the start of the line tells PHP to ignore the line.
10.
Delete the semicolon at the start of the line to enable the extension.
extension=php_mysql.dll
11.
Save and close the php.ini file.
TIP
Don’t omit the final
slash.
Summary of Contents for DREAMWEAVER 8-GETTING STARTED WITH...
Page 1: ...Getting Started with Dreamweaver...
Page 8: ...8 Contents...
Page 10: ......
Page 46: ...46 Dreamweaver Basics...
Page 48: ......
Page 128: ...128 Tutorial Formatting Your Page with CSS...
Page 136: ...136 Tutorial Publishing Your Site...
Page 138: ......
Page 189: ...Add a Repeat Region XSLT object 189 3 Select Insert XSLT Objects Repeat Region...
Page 196: ...196 Tutorial Displaying XML Data...
Page 216: ......
Page 230: ...230 Understanding Web Applications...
Page 236: ...236 Installing a Web Server...
Page 254: ...254 Setup for Sample ColdFusion Site...
Page 268: ...268 Setup for Sample ASP NET Site...
Page 284: ...284 Setup for Sample ASP Site...
Page 300: ...300 Setup for Sample JSP Site...
Page 320: ...320 Setup for Sample PHP Site...