Skip to Content
Core PHP Programming, Third Edition
book

Core PHP Programming, Third Edition

by Leon Atkinson
August 2003
Intermediate to advanced
1104 pages
19h 27m
English
Pearson
Content preview from Core PHP Programming, Third Edition

15.1. Configuration Directives

Configuration directives change the behavior of PHP. PHP looks for these directives in php.ini. PHP looks for this file in three locations, in the following order: the current directory, the path set in the PHPRC environment variable, or in a standard path compiled into PHP. On UNIX, this path is /usr/local/lib. On Windows, it's the main system directory, usually C:\WINDOWS or C:\WINNT. A typical installation uses a single php.ini file, kept in this last path.

If you use the Apache Web server, you may override php.ini settings with .htaccess and httpd.conf files. You may use one of four Apache commands to set a PHP directive. Write the Apache command followed by the PHP directive name followed by the appropriate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming PHP, 3rd Edition

Programming PHP, 3rd Edition

Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
Programming PHP

Programming PHP

Rasmus Lerdorf, Kevin Tatroe
Programming PHP, 2nd Edition

Programming PHP, 2nd Edition

Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre
Advanced PHP Programming

Advanced PHP Programming

George Schlossnagle

Publisher Resources

ISBN: 0130463469Purchase book