Once PHP has been installed on your computer, you can customize it to fit your needs. Although some
of the configuration settings deal with how the information is shown through the browser, a great many
of the settings relate to how the server handles errors and how those errors are displayed to you and
your users. You will also be able to have some control over how PHP interacts with MySQL.
Testing Your Installation:
To ensure that both PHP and Apache have been installed together, write another test program. Open
Notepad and type the following program:
PHP Testing
echo “If this works, we really did it!”;
?>
Save this file as phptest.php. Open your browser and type http://localhost/phptest.phpand you
should see the screen shown in Fig=1
Customizing Your Installation:
The configuration file that holds the key to how PHP runs on your computer is named php.ini; it can
be found in the root directory where you extracted your installation files. For the purposes of our discus-sion, we assume that you extracted the files to c:\ and then renamed the installation directory to
c:\php\.
The php.inifile includes a brief explanation of each of the configuration settings, which are beyond the
scope of this discussion. However, you are encouraged to read through the entire introduction of the
php.inifile before you begin making changes. In the table that follows, we touch on some of the more
commonly changed settings.
of the configuration settings deal with how the information is shown through the browser, a great many
of the settings relate to how the server handles errors and how those errors are displayed to you and
your users. You will also be able to have some control over how PHP interacts with MySQL.
Testing Your Installation:
To ensure that both PHP and Apache have been installed together, write another test program. Open
Notepad and type the following program:
echo “If this works, we really did it!”;
?>
Save this file as phptest.php. Open your browser and type http://localhost/phptest.phpand you
should see the screen shown in Fig=1
Customizing Your Installation:
The configuration file that holds the key to how PHP runs on your computer is named php.ini; it can
be found in the root directory where you extracted your installation files. For the purposes of our discus-sion, we assume that you extracted the files to c:\ and then renamed the installation directory to
c:\php\.
The php.inifile includes a brief explanation of each of the configuration settings, which are beyond the
scope of this discussion. However, you are encouraged to read through the entire introduction of the
php.inifile before you begin making changes. In the table that follows, we touch on some of the more
commonly changed settings.