NYCPHP Meetup

NYPHP.org

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

Analysis & Solutions danielc at analysisandsolutions.com
Wed Nov 12 15:48:16 EST 2003


Hi Folks:

I've whipped up a patch file in Unifed Diff format which I apply to my new 
PHP 5 installations.  Do note, this is a _development_ environment, so not 
all settings are appropriate for a live deployment.  But, this patch file 
approach is helpful tool for upgrades, regardless of what settings you 
use.

Enjoy!

--Dan


vvvvvvvvvvvvvvvvv ini5.sh vvvvvvvvvvvvvvvvvv
#! /usr/bin/sh

patch -i f:/php/ini5.diff c:/progra~1/php/php.ini-recommended -o c:/progra~1/php/php.ini
chmod 755 c:/progra~1/php/php.ini
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

vvvvvvvvvvvvv ini5.diff vvvvvvvvvvvvvvvvvvvv
--- php.ini-recommended	2003-09-30 22:18:28.000000000 -0400
+++ php.ini	2003-09-18 18:40:49.296875000 -0400
@@ -246 +246 @@
-memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
+memory_limit = 30M      ; Maximum amount of memory a script may consume (8MB)
@@ -292 +292 @@
-display_errors = Off
+display_errors = On
@@ -302 +302 @@
-log_errors = On
+log_errors = Off
@@ -323 +323 @@
-track_errors = Off
+track_errors = On
@@ -392 +392 @@
-register_argc_argv = Off
+register_argc_argv = On
@@ -436,0 +437,2 @@
+;include_path = ".;c:\progra~1\pear\pear;d:\other\test\location"
+include_path = ".;c:\progra~1\pear\pear"
@@ -450 +452 @@
-extension_dir = "./"
+extension_dir = "c:\progra~1\php\extensions"
@@ -493 +495 @@
-;upload_tmp_dir =
+upload_tmp_dir = "c:/temp"
@@ -548 +550 @@
-;extension=php_bz2.dll
+extension=php_bz2.dll
@@ -559 +561 @@
-;extension=php_gd2.dll
+extension=php_gd2.dll
@@ -576 +578 @@
-;extension=php_mysql.dll
+extension=php_mysql.dll
@@ -609 +611 @@
-;sendmail_from = me at example.com
+sendmail_from = office at analysis.users.panix.com
@@ -851 +853 @@
-session.save_path = "/tmp"
+session.save_path = "c:/temp"
@@ -931 +933 @@
-session.use_trans_sid = 0
+session.use_trans_sid = 1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- 
     FREE scripts that make web and database programming easier
           http://www.analysisandsolutions.com/software/
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409



More information about the talk mailing list