[ Team LiB ] Previous Section Next Section

Workshop

Quiz

1:

Where can you find the PHP online manual?

2:

From a Unix operating system, how would you get help on configuration options (the options you pass to the configure script in your PHP distribution)?

3:

What is Apache's configuration file typically called?

4:

Which line should you add to the Apache configuration file to ensure that the .php extension is recognized?

5:

What is PHP's configuration file called?


Answers

A1:

The manual for PHP is available at http://www.php.net/manual/.

A2:

You can get help on configuration options by calling the configure script in the PHP distribution folder and passing it the --help argument:

./configure -help

A3:

The Apache configuration file is called httpd.conf.

A4:

The line is

AddType application/x-httpd-php .php

It ensures that Apache treats files ending with the .php extension as PHP scripts.

A5:

PHP's configuration file is called php.ini.


    [ Team LiB ] Previous Section Next Section