now@nyphp
Browse - and upload - photos of events, at the NYPHP flickr Group.
Link up with NYPHP at the PHP LinkedIn Group.
The settings in php.ini control various aspects of PHP’s behavior. The default settings are not always optimal for a production environment. Here we present NYPHP’s recommendations for setting key initialization parameters.
Set these file settings to appropriate values if for some reason the defaults are not acceptable:
Set these execution settings to appropriate values:
# make sure that you're running with -DEV
<IfDefine EV>
# point modifications at a virtual host or a directory or specific files
<VirtualHost *>
ServerAdmin foo at SpecificApplication.com
DocumentRoot "/var/dev/www"
ServerName dev
# PHP stuff goes here
php_value auto_append_file "/var/dev/dev.inc"
php_value error_reporting "E_ALL"
# end of PHP stuff
</VirtualHost>
</IfDefine>
First use the phpinfo() function on the server to determine exactly how PHP is configured there; and then decide which values you will need to reset. NYPHP members recommend a variety of techniques to accomplish the actual resetting. Among them are the following:
include_path = .:/path/to/global/includes:/path/to/local/includes register_globals = 0 error_reporting = E_ALL display_errors = 1
php_value include_path .:/path/to/global/includes:/path/to/local/includes php_value register_globals 0 php_value error_reporting E_ALL php_value display_errors 1 php_value auto_prepend_file path/to/my/functions/library/masterfile.php
$cfg = parse_ini_file('/path/to/config.conf');
foreach($cfg as $key => $value) {
define($key,$value);
}
More information is here.
For further information:
A list of which php.ini settings can be overridden by the user is
here.
Information on using Apache’s httpd.conf is
here.
PHP.NET’s own recommended php.ini is
here.
Contributors to this article include the following:
Mark Armendariz
Jon Baer
Jeff Barrett
Daniel Convissor
John Corry
John Lacey
Alan T. Miller
David Mintz
Brian Pang
Chris Shiflett
Felix Zaslavskiy
Hans Zaunere
Nasir Zubair
and the PHundamentals team: Jeff Siegel and Mike Southwell
Uniting developers and business.
Bootup for NY Technology.
Announce Coding for Mobile Web Applications
Talk Live chat features or similar functionality.
Talk "Drupal makes me hAPI" talk: NYLUG 3/17 @ 6:30PM by Forest Mars and Jingsheng Wang
Talk good language for small GUI app?
Drupal installing drupal application files outside web doc root
Jobs Senior PHP/Ecommerce Developer Position
Jobs PHP Development Opportunity in New Jersey
Jobs Front End Web Developer position at UrbanDaddy
Jobs PHP Developer position at UrbanDaddy
Joomla More Ux resources and jquery based modules for rich user interaction web design
Joomla Usability design website
Joomla Google Chrome issues with permanent redirections?
Mysql mysql -h and general security with MySQL questions.