Let's look at these options by focusing on the current versions of PHP5 and with PHP6 already in mind.
The PHP configuration file is php.ini. It can be located in different directories according to platform or distribution, for example in Ubuntu it is in /etc/php5/apache2/php.ini
Full content in Security by Default

