The configuration file (called php3.ini in PHP 3.0, and simply php.ini as of PHP 4.0) is read when PHP starts up.
With PHP 4.0, there are several Apache directives that allow you to change the PHP configuration from within the Apache configuration file itself.