News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mattias Geniar's Blog:
php_value vs php_admin_value and the use of php_flag explained
February 22, 2012 @ 12:14:22

In this quick post to his blog Mattias Geniar looks at three different Apache flags you can use in your configuration/.htaccess files to set various things in your PHP environment.

Back in 2009 there was a bug in the php_admin_value implementation before PHP 5.2.6. Since then, everything should run smoothly again. However, I find there's still a lot of confusion on when to use php_value, php_admin_value, php_flag and php_admin_flag. So I'll see if we can clear some of that.

He compares the three php_* flags you can use to set different kinds of values - "php_flag" for boolean operations, "php_admin_flag" (similar, but only in the vhost config) and the "php_value" that can be used for everything else, including overriding some settings in your php.ini.

0 comments voice your opinion now!
phpvalue phpadminvalue phpflag configuration settings


blog comments powered by Disqus

Similar Posts

Marcelo Gornstein's Blog: Dependency injection with Xml and Yaml in the Ding container

Kevin Schroeder: (Basic) Configuring the Magento 2 Dependency Injection Container

SitePoint PHP Blog: Build Virtual Machines Easily with PuPHPet Part 2

Carsten Lucke's Blog: Configuration issues with Xdebug on Debian Etch

Master Zend Framework: Make Module Configs Cacheable with the ZF2 Factory Interface


Community Events

Don't see your event here?
Let us know!


introduction language api version series php7 laravel extension example opinion podcast laravel5 library release community list interview voicesoftheelephpant framework security

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework