NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHundamentals Topic #4: php.ini settings

jon baer jonbaer at jonbaer.net
Wed Nov 12 19:45:56 EST 2003


i currently use apache on the outside to specify certain php.ini values with
<IfDefine>, example:

/usr/sbin/httpd -DEV

<IfDefine EV>
<VirtualHost *>
ServerAdmin foo at foo.com
DocumentRoot "/var/dev/www"
ServerName dev
# php stuff
php_value auto_append_file "/var/dev/dev.inc"
php_value error_reporting "E_ALL"
</VirtualHost>
</IfDefine>

One thing it lets you do more easily is within the append file include dev
mysql settings vs. production values (ssl cert, user, pass, etc) ...

Also, since it kinda pertains to php.ini but using php as a shell CLI it's
worth I guess pointing out the 3 flags (-n to use no php.ini - giving you a
"vanilla" php and -c to show where to locate a php.ini and -d key=value to
set a value @ runtime).

- jon






More information about the talk mailing list