php.ini confusion

Reply

Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

php.ini confusion

 
0
  #1
Aug 5th, 2008
I've been trying to figure this out for months so if someone could tell me how stupid I am that would be great...

The first php.ini file works for sharing sessions from domain to subdomain no prob... with the simple inclusion of

session.cookie_domain = "mydomain.com"

I've tried them both with and without the dot in fromnt and the first one works only without it...

The problem is that it throughs all sorts of errors - I just shut them off and I have no trouble but it makes it difficult to trouble shoot errors

the second one - which is the actual file my host is using - doesn't work at all as far as sharing sessions between domain and subdomain - I think I have put all of the settings the same - and I have tried numerous different things but it just will not work - for the life of me I can't figure out why one does and the other doesn't so if someone else can that'd be great

here is the first one that works as far as sharing sessions between domains and subdomains

  1.  
  2. [php]
  3.  
  4. engine = On
  5. zend.ze1_compatibility_mode = Off
  6. short_open_tag = On
  7. asp_tags = Off
  8. precision = 12
  9. y2k_compliance = Off
  10. output_buffering = On
  11. zlib.output_compression = On
  12. implicit_flush = Off
  13. unserialize_callback_func=
  14. serialize_precision = 100
  15. allow_call_time_pass_reference = On
  16. safe_mode = Off
  17. safe_mode_gid =
  18. safe_mode_include_dir =
  19. safe_mode_exec_dir =
  20. safe_mode_allowed_env_vars = PHP_
  21. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  22. disable_functions =
  23. disable_classes =
  24. expose_php = Off
  25. max_execution_time = 300
  26. max_input_time = 300
  27. memory_limit = 300M
  28. error_reporting = E_ALL
  29. display_errors = Off
  30. display_startup_errors = Off
  31. include_path = ".:/usr/lib/php:/usr/local/lib/php"
  32.  
  33. log_errors = On
  34. log_errors_max_len = 9024
  35. ignore_repeated_errors = Off
  36. ignore_repeated_source = Off
  37. report_memleaks = On
  38. track_errors = Off
  39.  
  40. variables_order = "EGPCS"
  41. register_globals = Off
  42. register_long_arrays = Off
  43. register_argc_argv = Off
  44. auto_globals_jit = On
  45. post_max_size = 300M
  46. magic_quotes_gpc = Off
  47. magic_quotes_runtime = Off
  48. magic_quotes_sybase = Off
  49. auto_prepend_file =
  50. auto_append_file =
  51. default_mimetype = "text/html"
  52. ;default_charset = "iso-8859-1"
  53.  
  54. doc_root =
  55. user_dir =
  56. extension_dir = "./"
  57. enable_dl = On
  58. file_uploads = On
  59. upload_tmp_dir = "/home/domain/tmp"
  60. upload_max_filesize = 300M
  61. allow_url_fopen = On
  62. default_socket_timeout = 300
  63.  
  64.  
  65.  
  66. [Syslog]
  67. define_syslog_variables = Off
  68.  
  69. [mail function]
  70. smtp_port = 25
  71.  
  72.  
  73. [SQL]
  74. sql.safe_mode = Off
  75.  
  76. [ODBC]
  77. odbc.allow_persistent = On
  78. odbc.check_persistent = On
  79. odbc.max_persistent = -1
  80. odbc.max_links = -1
  81. odbc.defaultlrl = 4096
  82. odbc.defaultbinmode = 1
  83.  
  84. [MySQL]
  85. mysql.allow_persistent = On
  86. mysql.max_persistent = -1
  87. mysql.max_links = -1
  88. mysql.default_port =
  89. mysql.default_socket =
  90. mysql.default_host =
  91. mysql.default_user =
  92. mysql.default_password =
  93. mysql.connect_timeout = 60
  94. mysql.trace_mode = Off
  95.  
  96. [MySQLi]
  97. mysqli.max_links = -1
  98. mysqli.default_port = 3306
  99. mysqli.default_socket =
  100. mysqli.default_host =
  101. mysqli.default_user =
  102. mysqli.default_pw =
  103. mysqli.reconnect = Off
  104.  
  105. [mSQL]
  106. msql.allow_persistent = On
  107. msql.max_persistent = -1
  108. msql.max_links = -1
  109.  
  110. [PostgresSQL]
  111. pgsql.allow_persistent = On
  112. pgsql.auto_reset_persistent = Off
  113. pgsql.max_persistent = -1
  114. pgsql.max_links = -1
  115. pgsql.ignore_notice = 0
  116. pgsql.log_notice = 0
  117.  
  118. [Sybase]
  119. sybase.allow_persistent = On
  120. sybase.max_persistent = -1
  121. sybase.max_links = -1
  122. sybase.min_error_severity = 10
  123. sybase.min_message_severity = 10
  124. sybase.compatability_mode = Off
  125.  
  126. [Sybase-CT]
  127. sybct.allow_persistent = On
  128. sybct.max_persistent = -1
  129. sybct.max_links = -1
  130. sybct.min_server_severity = 10
  131. sybct.min_client_severity = 10
  132.  
  133. [bcmath]
  134. bcmath.scale = 0
  135.  
  136. [browscap]
  137.  
  138. [Informix]
  139. ifx.default_host =
  140. ifx.default_user =
  141. ifx.default_password =
  142. ifx.allow_persistent = On
  143. ifx.max_persistent = -1
  144. ifx.max_links = -1
  145. ifx.textasvarchar = 0
  146. ifx.byteasvarchar = 0
  147. ifx.charasvarchar = 0
  148. ifx.blobinfile = 0
  149. ifx.nullformat = 0
  150.  
  151. [Session]
  152. session.save_handler = files
  153. session.save_path = "/home/domain/ses"
  154. session.use_cookies = 1
  155. session.name = PHPSESSID
  156. session.auto_start = 0
  157. session.cookie_lifetime = 0
  158. session.cookie_path = /
  159. session.cookie_domain = "domain.com"
  160. session.serialize_handler = php
  161. session.gc_probability = 1
  162. session.gc_divisor = 100
  163. session.gc_maxlifetime = 1440
  164. session.bug_compat_42 = 1
  165. session.bug_compat_warn = 1
  166. session.referer_check =
  167. session.entropy_length = 0
  168. session.entropy_file =
  169. session.cache_limiter = nocache
  170. session.cache_expire = 180
  171. session.use_trans_sid = 0
  172. session.hash_function = 0
  173. session.hash_bits_per_character = 4
  174.  
  175. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  176.  
  177. [MSSQL]
  178. mssql.allow_persistent = On
  179. mssql.max_persistent = -1
  180. mssql.max_links = -1
  181. mssql.min_error_severity = 10
  182. mssql.min_message_severity = 10
  183. mssql.compatability_mode = Off
  184. mssql.secure_connection = Off
  185.  
  186. [Assertion]
  187.  
  188. [Verisign Payflow Pro]
  189. pfpro.defaulthost = "test-payflow.verisign.com"
  190. pfpro.defaultport = 443
  191. pfpro.defaulttimeout = 30
  192.  
  193. [COM]
  194.  
  195. [mbstring]
  196.  
  197. [FrontBase]
  198.  
  199. [exif]
  200.  
  201. [Zend]
  202. zend_optimizer.optimization_level=15
  203. zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
  204. zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
  205. zend_optimizer.version=3.3.0
  206.  
  207.  
  208.  
  209.  
  210. zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
  211. zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
  212.  
  213.  
  214. [Tidy]
  215. tidy.clean_output = Off
  216.  
  217. [soap]
  218. soap.wsdl_cache_enabled=1
  219. soap.wsdl_cache_dir="$$PHPSESSIONS_FOLDER$$"
  220. soap.wsdl_cache_ttl=86400

this is the one that I would like to use since it is the actual one my host is using and the error reporting works fine.

  1.  
  2. [PHP]
  3.  
  4. ;;;;;;;;;;;
  5. ; WARNING ;
  6. ;;;;;;;;;;;
  7. ; This is the default settings file for new PHP installations.
  8. ; By default, PHP installs itself with a configuration suitable for
  9. ; development purposes, and *NOT* for production purposes.
  10. ; For several security-oriented considerations that should be taken
  11. ; before going online with your site, please consult php.ini-recommended
  12. ; and http://php.net/manual/en/security.php.
  13.  
  14.  
  15. ;;;;;;;;;;;;;;;;;;;
  16. ; About this file ;
  17. ;;;;;;;;;;;;;;;;;;;
  18. ; This file controls many aspects of PHP's behavior. In order for PHP to
  19. ; read it, it must be named 'php.ini'. PHP looks for it in the current
  20. ; working directory, in the path designated by the environment variable
  21. ; PHPRC, and in the path that was defined in compile time (in that order).
  22. ; Under Windows, the compile-time path is the Windows directory. The
  23. ; path in which the php.ini file is looked for can be overridden using
  24. ; the -c argument in command line mode.
  25. ;
  26. ; The syntax of the file is extremely simple. Whitespace and Lines
  27. ; beginning with a semicolon are silently ignored (as you probably guessed).
  28. ; Section headers (e.g. [Foo]) are also silently ignored, even though
  29. ; they might mean something in the future.
  30. ;
  31. ; Directives are specified using the following syntax:
  32. ; directive = value
  33. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
  34. ;
  35. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
  36. ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
  37. ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
  38. ;
  39. ; Expressions in the INI file are limited to bitwise operators and parentheses:
  40. ; | bitwise OR
  41. ; & bitwise AND
  42. ; ~ bitwise NOT
  43. ; ! boolean NOT
  44. ;
  45. ; Boolean flags can be turned on using the values 1, On, True or Yes.
  46. ; They can be turned off using the values 0, Off, False or No.
  47. ;
  48. ; An empty string can be denoted by simply not writing anything after the equal
  49. ; sign, or by using the None keyword:
  50. ;
  51. ; foo = ; sets foo to an empty string
  52. ; foo = none ; sets foo to an empty string
  53. ; foo = "none" ; sets foo to the string 'none'
  54. ;
  55. ; If you use constants in your value, and these constants belong to a
  56. ; dynamically loaded extension (either a PHP extension or a Zend extension),
  57. ; you may only use these constants *after* the line that loads the extension.
  58. ;
  59. ; All the values in the php.ini-dist file correspond to the builtin
  60. ; defaults (that is, if no php.ini is used, or if you delete these lines,
  61. ; the builtin defaults will be identical).
  62.  
  63.  
  64. ;;;;;;;;;;;;;;;;;;;;
  65. ; Language Options ;
  66. ;;;;;;;;;;;;;;;;;;;;
  67.  
  68. ; Enable the PHP scripting language engine under Apache.
  69. engine = On
  70.  
  71. ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
  72. ; NOTE: Using short tags should be avoided when developing applications or
  73. ; libraries that are meant for redistribution, or deployment on PHP
  74. ; servers which are not under your control, because short tags may not
  75. ; be supported on the target server. For portable, redistributable code,
  76. ; be sure not to use short tags.
  77. short_open_tag = On
  78.  
  79. ; Allow ASP-style <% %> tags.
  80. asp_tags = Off
  81.  
  82. ; The number of significant digits displayed in floating point numbers.
  83. precision = 12
  84.  
  85. ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
  86. y2k_compliance = On
  87.  
  88. ; Output buffering allows you to send header lines (including cookies) even
  89. ; after you send body content, at the price of slowing PHP's output layer a
  90. ; bit. You can enable output buffering during runtime by calling the output
  91. ; buffering functions. You can also enable output buffering for all files by
  92. ; setting this directive to On. If you wish to limit the size of the buffer
  93. ; to a certain size - you can use a maximum number of bytes instead of 'On', as
  94. ; a value for this directive (e.g., output_buffering=4096).
  95. output_buffering = On
  96.  
  97. ; You can redirect all of the output of your scripts to a function. For
  98. ; example, if you set output_handler to "mb_output_handler", character
  99. ; encoding will be transparently converted to the specified encoding.
  100. ; Setting any output handler automatically turns on output buffering.
  101. ; Note: People who wrote portable scripts should not depend on this ini
  102. ; directive. Instead, explicitly set the output handler using ob_start().
  103. ; Using this ini directive may cause problems unless you know what script
  104. ; is doing.
  105. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
  106. ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
  107. ;output_handler =
  108.  
  109. ; Transparent output compression using the zlib library
  110. ; Valid values for this option are 'off', 'on', or a specific buffer size
  111. ; to be used for compression (default is 4KB)
  112. ; Note: Resulting chunk size may vary due to nature of compression. PHP
  113. ; outputs chunks that are few hundreds bytes each as a result of
  114. ; compression. If you prefer a larger chunk size for better
  115. ; performance, enable output_buffering in addition.
  116. ; Note: You need to use zlib.output_handler instead of the standard
  117. ; output_handler, or otherwise the output will be corrupted.
  118. zlib.output_compression = Off
  119.  
  120. ; You cannot specify additional output handlers if zlib.output_compression
  121. ; is activated here. This setting does the same as output_handler but in
  122. ; a different order.
  123. ;zlib.output_handler =
  124.  
  125. ; Implicit flush tells PHP to tell the output layer to flush itself
  126. ; automatically after every output block. This is equivalent to calling the
  127. ; PHP function flush() after each and every call to print() or echo() and each
  128. ; and every HTML block. Turning this option on has serious performance
  129. ; implications and is generally recommended for debugging purposes only.
  130. implicit_flush = Off
  131.  
  132. ; The unserialize callback function will be called (with the undefined class'
  133. ; name as parameter), if the unserializer finds an undefined class
  134. ; which should be instanciated.
  135. ; A warning appears if the specified function is not defined, or if the
  136. ; function doesn't include/implement the missing class.
  137. ; So only set this entry, if you really want to implement such a
  138. ; callback-function.
  139. unserialize_callback_func=
  140.  
  141. ; When floats & doubles are serialized store serialize_precision significant
  142. ; digits after the floating point. The default value ensures that when floats
  143. ; are decoded with unserialize, the data will remain the same.
  144. serialize_precision = 100
  145.  
  146. ; Whether to enable the ability to force arguments to be passed by reference
  147. ; at function call time. This method is deprecated and is likely to be
  148. ; unsupported in future versions of PHP/Zend. The encouraged method of
  149. ; specifying which arguments should be passed by reference is in the function
  150. ; declaration. You're encouraged to try and turn this option Off and make
  151. ; sure your scripts work properly with it in order to ensure they will work
  152. ; with future versions of the language (you will receive a warning each time
  153. ; you use this feature, and the argument will be passed by value instead of by
  154. ; reference).
  155. allow_call_time_pass_reference = On
  156.  
  157. ; Safe Mode
  158. ;
  159. safe_mode = Off
  160.  
  161. ; By default, Safe Mode does a UID compare check when
  162. ; opening files. If you want to relax this to a GID compare,
  163. ; then turn on safe_mode_gid.
  164. safe_mode_gid = Off
  165.  
  166. ; When safe_mode is on, UID/GID checks are bypassed when
  167. ; including files from this directory and its subdirectories.
  168. ; (directory must also be in include_path or full path must
  169. ; be used when including)
  170. safe_mode_include_dir =
  171.  
  172. ; When safe_mode is on, only executables located in the safe_mode_exec_dir
  173. ; will be allowed to be executed via the exec family of functions.
  174. safe_mode_exec_dir =
  175.  
  176. ; Setting certain environment variables may be a potential security breach.
  177. ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
  178. ; the user may only alter environment variables whose names begin with the
  179. ; prefixes supplied here. By default, users will only be able to set
  180. ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
  181. ;
  182. ; Note: If this directive is empty, PHP will let the user modify ANY
  183. ; environment variable!
  184. safe_mode_allowed_env_vars = PHP_
  185.  
  186. ; This directive contains a comma-delimited list of environment variables that
  187. ; the end user won't be able to change using putenv(). These variables will be
  188. ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
  189. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  190.  
  191. ; open_basedir, if set, limits all file operations to the defined directory
  192. ; and below. This directive makes most sense if used in a per-directory
  193. ; or per-virtualhost web server configuration file. This directive is
  194. ; *NOT* affected by whether Safe Mode is turned On or Off.
  195. ;open_basedir =
  196.  
  197. ; This directive allows you to disable certain functions for security reasons.
  198. ; It receives a comma-delimited list of function names. This directive is
  199. ; *NOT* affected by whether Safe Mode is turned On or Off.
  200. disable_functions = system,shell_exec,telnet,friends
  201.  
  202. ; This directive allows you to disable certain classes for security reasons.
  203. ; It receives a comma-delimited list of class names. This directive is
  204. ; *NOT* affected by whether Safe Mode is turned On or Off.
  205. disable_classes =
  206.  
  207. ; Colors for Syntax Highlighting mode. Anything that's acceptable in
  208. ; <font color="??????"> would work.
  209. ;highlight.string = #DD0000
  210. ;highlight.comment = #FF9900
  211. ;highlight.keyword = #007700
  212. ;highlight.bg = #FFFFFF
  213. ;highlight.default = #0000BB
  214. ;highlight.html = #000000
  215.  
  216.  
  217. ;
  218. ; Misc
  219. ;
  220. ; Decides whether PHP may expose the fact that it is installed on the server
  221. ; (e.g. by adding its signature to the Web server header). It is no security
  222. ; threat in any way, but it makes it possible to determine whether you use PHP
  223. ; on your server or not.
  224. expose_php = On
  225.  
  226.  
  227. ;;;;;;;;;;;;;;;;;;;
  228. ; Resource Limits ;
  229. ;;;;;;;;;;;;;;;;;;;
  230.  
  231. max_execution_time = 30 ; Maximum execution time of each script, in seconds
  232. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
  233. memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
  234.  
  235. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  236. ; Error handling and logging ;
  237. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  238.  
  239. ; error_reporting is a bit-field. Or each number up to get desired error
  240. ; reporting level
  241. ; E_ALL - All errors and warnings
  242. ; E_ERROR - fatal run-time errors
  243. ; E_WARNING - run-time warnings (non-fatal errors)
  244. ; E_PARSE - compile-time parse errors
  245. ; E_NOTICE - run-time notices (these are warnings which often result
  246. ; from a bug in your code, but it's possible that it was
  247. ; intentional (e.g., using an uninitialized variable and
  248. ; relying on the fact it's automatically initialized to an
  249. ; empty string)
  250. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  251. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
  252. ; initial startup
  253. ; E_COMPILE_ERROR - fatal compile-time errors
  254. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  255. ; E_USER_ERROR - user-generated error message
  256. ; E_USER_WARNING - user-generated warning message
  257. ; E_USER_NOTICE - user-generated notice message
  258. ;
  259. ; Examples:
  260. ;
  261. ; - Show all errors, except for notices
  262. ;
  263. ;error_reporting = E_ALL & ~E_NOTICE
  264. ;
  265. ; - Show only errors
  266. ;
  267. ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
  268. ;
  269. ; - Show all errors except for notices
  270. ;
  271. error_reporting = E_ALL & ~E_NOTICE
  272.  
  273. ; Print out errors (as a part of the output). For production web sites,
  274. ; you're strongly encouraged to turn this feature off, and use error logging
  275. ; instead (see below). Keeping display_errors enabled on a production web site
  276. ; may reveal security information to end users, such as file paths on your Web
  277. ; server, your database schema or other information.
  278. display_errors = On
  279.  
  280. ; Even when display_errors is on, errors that occur during PHP's startup
  281. ; sequence are not displayed. It's strongly recommended to keep
  282. ; display_startup_errors off, except for when debugging.
  283. display_startup_errors = Off
  284.  
  285. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  286. ; As stated above, you're strongly advised to use error logging in place of
  287. ; error displaying on production web sites.
  288. log_errors = On
  289.  
  290. ; Set maximum length of log_errors. In error_log information about the source is
  291. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  292. ;log_errors = On;
  293.  
  294. ; Do not log repeated messages. Repeated errors must occur in same file on same
  295. ; line until ignore_repeated_source is set true.
  296. ignore_repeated_errors = Off
  297.  
  298. ; Ignore source of message when ignoring repeated messages. When this setting
  299. ; is On you will not log errors with repeated messages from different files or
  300. ; sourcelines.
  301. ignore_repeated_source = Off
  302.  
  303. ; If this parameter is set to Off, then memory leaks will not be shown (on
  304. ; stdout or in the log). This has only effect in a debug compile, and if
  305. ; error reporting includes E_WARNING in the allowed list
  306. report_memleaks = On
  307.  
  308. ; Store the last error/warning message in $php_errormsg (boolean).
  309. track_errors = Off
  310.  
  311. ; Disable the inclusion of HTML tags in error messages.
  312. ;html_errors = Off
  313.  
  314. ; If html_errors is set On PHP produces clickable error messages that direct
  315. ; to a page describing the error or function causing the error in detail.
  316. ; You can download a copy of the PHP manual from http://www.php.net/docs.php
  317. ; and change docref_root to the base URL of your local copy including the
  318. ; leading '/'. You must also specify the file extension being used including
  319. ; the dot.
  320. ;docref_root = "/phpmanual/"
  321. ;docref_ext = .html
  322.  
  323. ; String to output before an error message.
  324. ;error_prepend_string = "<font color=ff0000>"
  325.  
  326. ; String to output after an error message.
  327. ;error_append_string = "</font>"
  328.  
  329. ; Log errors to specified file.
  330. error_log = error_log
  331.  
  332. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
  333. ;error_log = error_log;
  334.  
  335.  
  336. ;;;;;;;;;;;;;;;;;
  337. ; Data Handling ;
  338. ;;;;;;;;;;;;;;;;;
  339. ;
  340. ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
  341.  
  342. ; The separator used in PHP generated URLs to separate arguments.
  343. ; Default is "&".
  344. ;arg_separator.output = "&amp;"
  345.  
  346. ; List of separator(s) used by PHP to parse input URLs into variables.
  347. ; Default is "&".
  348. ; NOTE: Every character in this directive is considered as separator!
  349. ;arg_separator.input = ";&"
  350.  
  351. ; This directive describes the order in which PHP registers GET, POST, Cookie,
  352. ; Environment and Built-in variables (G, P, C, E & S respectively, often
  353. ; referred to as EGPCS or GPC). Registration is done from left to right, newer
  354. ; values override older values.
  355. variables_order = "EGPCS"
  356.  
  357. ; Whether or not to register the EGPCS variables as global variables. You may
  358. ; want to turn this off if you don't want to clutter your scripts' global scope
  359. ; with user data. This makes most sense when coupled with track_vars - in which
  360. ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
  361. ; variables.
  362. ;
  363. ; You should do your best to write your scripts so that they do not require
  364. ; register_globals = Off; to be on; Using form variables as globals can easily lead
  365. ; to possible security problems, if the code is not very well thought of.
  366. register_globals = Off; = Off
  367.  
  368. ; This directive tells PHP whether to declare the argv&argc variables (that
  369. ; would contain the GET information). If you don't use these variables, you
  370. ; should turn it off for increased performance.
  371. register_argc_argv = On
  372.  
  373. ; Maximum size of POST data that PHP will accept.
  374. post_max_size = 8M
  375.  
  376. ; This directive is deprecated. Use variables_order instead.
  377. gpc_order = "GPC"
  378.  
  379. ; Magic quotes
  380. ;
  381.  
  382. ; Magic quotes for incoming GET/POST/Cookie data.
  383. magic_quotes_gpc = Off; = On
  384.  
  385. ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  386. magic_quotes_runtime = Off
  387.  
  388. ; Use Sybase-style magic quotes (escape ' with '' instead of \').
  389. magic_quotes_sybase = Off
  390.  
  391. ; Automatically add files before or after any PHP document.
  392. auto_prepend_file =
  393. auto_append_file =
  394.  
  395. ; As of 4.0b4, PHP always outputs a character encoding by default in
  396. ; the Content-type: header. To disable sending of the charset, simply
  397. ; set it to be empty.
  398. ;
  399. ; PHP's built-in default is text/html
  400. default_mimetype = "text/html"
  401. ;default_charset = "iso-8859-1"
  402.  
  403. ; Always populate the $HTTP_RAW_POST_DATA variable.
  404. ;always_populate_raw_post_data = On
  405.  
  406.  
  407. ;;;;;;;;;;;;;;;;;;;;;;;;;
  408. ; Paths and Directories ;
  409. ;;;;;;;;;;;;;;;;;;;;;;;;;
  410.  
  411. ; UNIX: "/path1:/path2"
  412. include_path = ".:/usr/lib/php:/usr/local/lib/php"
  413. ;
  414. ; Windows: "\path1;\path2"
  415. ;include_path = ".:/usr/lib/php:/usr/local/lib/php" ;
  416.  
  417. ; The root of the PHP pages, used only if nonempty.
  418. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
  419. ; if you are running php as a CGI under any web server (other than IIS)
  420. ; see documentation for security issues. The alternate is to use the
  421. ; cgi.force_redirect configuration below
  422. doc_root =
  423.  
  424. ; The directory under which PHP opens the script using /~username used only
  425. ; if nonempty.
  426. user_dir =
  427.  
  428. ; Directory in which the loadable extensions (modules) reside.
  429. extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
  430. zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
  431. zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"
  432. extension="suhosin.so"
  433.  
  434. ; Whether or not to enable the dl() function. The dl() function does NOT work
  435. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  436. ; disabled on them.
  437. enable_dl = Off
  438.  
  439. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  440. ; most web servers. Left undefined, PHP turns this on by default. You can
  441. ; turn it off here AT YOUR OWN RISK
  442. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  443. ; cgi.force_redirect = 1
  444.  
  445. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  446. ; every request.
  447. ; cgi.nph = 1
  448.  
  449. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  450. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  451. ; will look for to know it is OK to continue execution. Setting this variable MAY
  452. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  453. ; cgi.redirect_status_env = ;
  454.  
  455. ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
  456. ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
  457. ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
  458. ; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
  459. ; of zero causes PHP to behave as before. Default is zero. You should fix your scripts
  460. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
  461. ; cgi.fix_pathinfo=0
  462.  
  463. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  464. ; security tokens of the calling client. This allows IIS to define the
  465. ; security context that the request runs under. mod_fastcgi under Apache
  466. ; does not currently support this feature (03/17/2002)
  467. ; Set to 1 if running under IIS. Default is zero.
  468. ; fastcgi.impersonate = 1;
  469.  
  470. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  471. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
  472. ; is supported by Apache. When this option is set to 1 PHP will send
  473. ; RFC2616 compliant header.
  474. ; Default is zero.
  475. ;cgi.rfc2616_headers = 0
  476.  
  477.  
  478. ;;;;;;;;;;;;;;;;
  479. ; File Uploads ;
  480. ;;;;;;;;;;;;;;;;
  481.  
  482. ; Whether to allow HTTP file uploads.
  483. file_uploads = On
  484.  
  485. ; Temporary directory for HTTP uploaded files (will use system default if not
  486. ; specified).
  487. ;upload_tmp_dir =
  488.  
  489. ; Maximum allowed size for uploaded files.
  490. upload_max_filesize = 2M
  491.  
  492.  
  493. ;;;;;;;;;;;;;;;;;;
  494. ; Fopen wrappers ;
  495. ;;;;;;;;;;;;;;;;;;
  496.  
  497. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  498. allow_url_fopen = On
  499.  
  500. ; Define the anonymous ftp password (your email address)
  501. ;from="john@doe.com"
  502.  
  503. ; Define the User-Agent string
  504. ; user_agent="PHP"
  505.  
  506. ; Default timeout for socket based streams (seconds)
  507. default_socket_timeout = 60
  508.  
  509. ; If your scripts have to deal with files from Macintosh systems,
  510. ; or you are running on a Mac and need to deal with files from
  511. ; unix or win32 systems, setting this flag will cause PHP to
  512. ; automatically detect the EOL character in those files so that
  513. ; fgets() and file() will work regardless of the source of the file.
  514. ; auto_detect_line_endings = Off
  515.  
  516.  
  517. ;;;;;;;;;;;;;;;;;;;;;;
  518. ; Dynamic Extensions ;
  519. ;;;;;;;;;;;;;;;;;;;;;;
  520. ;
  521. ; If you wish to have an extension loaded automatically, use the following
  522. ; syntax:
  523. ;
  524. ; extension=modulename.extension
  525. ;
  526. ; For example, on Windows:
  527. ;
  528. ; extension=msql.dll
  529. ;
  530. ; ... or under UNIX:
  531. ;
  532. ; extension=msql.so
  533. ;
  534. ; Note that it should be the name of the module only; no directory information
  535. ; needs to go here. Specify the location of the extension with the
  536. ; extension_dir directive above.
  537.  
  538.  
  539. ;Windows Extensions
  540. ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
  541. ;
  542. ;extension=php_bz2.dll
  543. ;extension=php_cpdf.dll
  544. ;extension=php_crack.dll
  545. ;extension=php_curl.dll
  546. ;extension=php_db.dll
  547. ;extension=php_dba.dll
  548. ;extension=php_dbase.dll
  549. ;extension=php_dbx.dll
  550. ;extension=php_domxml.dll
  551. ;extension=php_exif.dll
  552. ;extension=php_fdf.dll
  553. ;extension=php_filepro.dll
  554. ;extension=php_gd2.dll
  555. ;extension=php_gettext.dll
  556. ;extension=php_hyperwave.dll
  557. ;extension=php_iconv.dll
  558. ;extension=php_ifx.dll
  559. ;extension=php_iisfunc.dll
  560. ;extension=php_imap.dll
  561. ;extension=php_interbase.dll
  562. ;extension=php_java.dll
  563. ;extension=php_ldap.dll
  564. ;extension=php_mbstring.dll
  565. ;extension=php_mcrypt.dll
  566. ;extension=php_mhash.dll
  567. ;extension=php_mime_magic.dll
  568. ;extension=php_ming.dll
  569. ;extension=php_mssql.dll
  570. ;extension=php_msql.dll
  571. ;extension=php_oci8.dll
  572. ;extension=php_openssl.dll
  573. ;extension=php_oracle.dll
  574. ;extension=php_pdf.dll
  575. ;extension=php_pgsql.dll
  576. ;extension=php_printer.dll
  577. ;extension=php_shmop.dll
  578. ;extension=php_snmp.dll
  579. ;extension=php_sockets.dll
  580. ;extension=php_sybase_ct.dll
  581. ;extension=php_w32api.dll
  582. ;extension=php_xmlrpc.dll
  583. ;extension=php_xslt.dll
  584. ;extension=php_yaz.dll
  585. ;extension=php_zip.dll
  586.  
  587.  
  588. ;;;;;;;;;;;;;;;;;;;
  589. ; Module Settings ;
  590. ;;;;;;;;;;;;;;;;;;;
  591.  
  592. [Syslog]
  593. ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
  594. ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
  595. ; runtime, you can define these variables by calling define_syslog_variables().
  596. define_syslog_variables = Off
  597.  
  598. [mail function]
  599. ; For Win32 only.
  600. ;SMTP = localhost
  601. smtp_port = 25
  602.  
  603. ; For Win32 only.
  604. ;sendmail_from = me@localhost.com
  605.  
  606. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
  607. sendmail_path = "/usr/sbin/sendmail -t -i"
  608.  
  609. [Java]
  610. ;java.class.path = .\php_java.jar
  611. ;java.home = c:\jdk
  612. ;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
  613. ;java.library.path = .\
  614.  
  615. [SQL]
  616. sql.safe_mode = Off
  617.  
  618. [ODBC]
  619. ;odbc.default_db = Not yet implemented
  620. ;odbc.default_user = Not yet implemented
  621. ;odbc.default_pw = Not yet implemented
  622.  
  623. ; Allow or prevent persistent links.
  624. odbc.allow_persistent = On
  625.  
  626. ; Check that a connection is still valid before reuse.
  627. odbc.check_persistent = On
  628.  
  629. ; Maximum number of persistent links. -1 means no limit.
  630. odbc.max_persistent = -1
  631.  
  632. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  633. odbc.max_links = -1
  634.  
  635. ; Handling of LONG fields. Returns number of bytes to variables. 0 means
  636. ; passthru.
  637. odbc.defaultlrl = 4096
  638.  
  639. ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
  640. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
  641. ; of uodbc.defaultlrl and uodbc.defaultbinmode
  642. odbc.defaultbinmode = 1
  643.  
  644. [MySQL]
  645. ; Allow or prevent persistent links.
  646. mysql.allow_persistent = On
  647.  
  648. ; Maximum number of persistent links. -1 means no limit.
  649. mysql.max_persistent = -1
  650.  
  651. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  652. mysql.max_links = -1
  653.  
  654. ; Default port number for mysql_connect(). If unset, mysql_connect() will use
  655. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  656. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
  657. ; at MYSQL_PORT.
  658. mysql.default_port =
  659.  
  660. ; Default socket name for local MySQL connects. If empty, uses the built-in
  661. ; MySQL defaults.
  662. mysql.default_socket =
  663.  
  664. ; Default host for mysql_connect() (doesn't apply in safe mode).
  665. mysql.default_host =
  666.  
  667. ; Default user for mysql_connect() (doesn't apply in safe mode).
  668. mysql.default_user =
  669.  
  670. ; Default password for mysql_connect() (doesn't apply in safe mode).
  671. ; Note that this is generally a *bad* idea to store passwords in this file.
  672. ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
  673. ; and reveal this password! And of course, any users with read access to this
  674. ; file will be able to reveal the password as well.
  675. mysql.default_password =
  676.  
  677. ; Maximum time (in seconds) for connect timeout. -1 means no limit
  678. mysql.connect_timeout = 60
  679.  
  680. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
  681. ; SQL-Errors will be displayed.
  682. mysql.trace_mode = Off
  683.  
  684. [mSQL]
  685. ; Allow or prevent persistent links.
  686. msql.allow_persistent = On
  687.  
  688. ; Maximum number of persistent links. -1 means no limit.
  689. msql.max_persistent = -1
  690.  
  691. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  692. msql.max_links = -1
  693.  
  694. [PostgresSQL]
  695. ; Allow or prevent persistent links.
  696. pgsql.allow_persistent = On
  697.  
  698. ; Detect broken persistent links always with pg_pconnect(). Need a little overhead.
  699. pgsql.auto_reset_persistent = Off
  700.  
  701. ; Maximum number of persistent links. -1 means no limit.
  702. pgsql.max_persistent = -1
  703.  
  704. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  705. pgsql.max_links = -1
  706.  
  707. ; Ignore PostgreSQL backends Notice message or not.
  708. pgsql.ignore_notice = 0
  709.  
  710. ; Log PostgreSQL backends Noitce message or not.
  711. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
  712. pgsql.log_notice = 0
  713.  
  714. [Sybase]
  715. ; Allow or prevent persistent links.
  716. sybase.allow_persistent = On
  717.  
  718. ; Maximum number of persistent links. -1 means no limit.
  719. sybase.max_persistent = -1
  720.  
  721. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  722. sybase.max_links = -1
  723.  
  724. ;sybase.interface_file = "/usr/sybase/interfaces"
  725.  
  726. ; Minimum error severity to display.
  727. sybase.min_error_severity = 10
  728.  
  729. ; Minimum message severity to display.
  730. sybase.min_message_severity = 10
  731.  
  732. ; Compatability mode with old versions of PHP 3.0.
  733. ; If on, this will cause PHP to automatically assign types to results according
  734. ; to their Sybase type, instead of treating them all as strings. This
  735. ; compatibility mode will probably not stay around forever, so try applying
  736. ; whatever necessary changes to your code, and turn it off.
  737. sybase.compatability_mode = Off
  738.  
  739. [Sybase-CT]
  740. ; Allow or prevent persistent links.
  741. sybct.allow_persistent = On
  742.  
  743. ; Maximum number of persistent links. -1 means no limit.
  744. sybct.max_persistent = -1
  745.  
  746. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  747. sybct.max_links = -1
  748.  
  749. ; Minimum server message severity to display.
  750. sybct.min_server_severity = 10
  751.  
  752. ; Minimum client message severity to display.
  753. sybct.min_client_severity = 10
  754.  
  755. [dbx]
  756. ; returned column names can be converted for compatibility reasons
  757. ; possible values for dbx.colnames_case are
  758. ; "unchanged" (default, if not set)
  759. ; "lowercase"
  760. ; "uppercase"
  761. ; the recommended default is either upper- or lowercase, but
  762. ; unchanged is currently set for backwards compatibility
  763. dbx.colnames_case = "unchanged"
  764.  
  765. [bcmath]
  766. ; Number of decimal digits for all bcmath functions.
  767. bcmath.scale = 0
  768.  
  769. [browscap]
  770. ;browscap = extra/browscap.ini
  771.  
  772. [Informix]
  773. ; Default host for ifx_connect() (doesn't apply in safe mode).
  774. ifx.default_host =
  775.  
  776. ; Default user for ifx_connect() (doesn't apply in safe mode).
  777. ifx.default_user =
  778.  
  779. ; Default password for ifx_connect() (doesn't apply in safe mode).
  780. ifx.default_password =
  781.  
  782. ; Allow or prevent persistent links.
  783. ifx.allow_persistent = On
  784.  
  785. ; Maximum number of persistent links. -1 means no limit.
  786. ifx.max_persistent = -1
  787.  
  788. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  789. ifx.max_links = -1
  790.  
  791. ; If on, select statements return the contents of a text blob instead of its id.
  792. ifx.textasvarchar = 0
  793.  
  794. ; If on, select statements return the contents of a byte blob instead of its id.
  795. ifx.byteasvarchar = 0
  796.  
  797. ; Trailing blanks are stripped from fixed-length char columns. May help the
  798. ; life of Informix SE users.
  799. ifx.charasvarchar = 0
  800.  
  801. ; If on, the contents of text and byte blobs are dumped to a file instead of
  802. ; keeping them in memory.
  803. ifx.blobinfile = 0
  804.  
  805. ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  806. ; NULL's are returned as string 'NULL'.
  807. ifx.nullformat = 0
  808.  
  809. [Session]
  810. ; Handler used to store/retrieve data.
  811. session.save_handler = files
  812.  
  813. ; Argument passed to save_handler. In the case of files, this is the path
  814. ; where data files are stored. Note: Windows users have to change this
  815. ; variable in order to use PHP's session functions.
  816. ; As of PHP 4.0.1, you can define the path as:
  817. ; session.save_path = "N;/path"
  818. ; where N is an integer. Instead of storing all the session files in
  819. ; /path, what this will do is use subdirectories N-levels deep, and
  820. ; store the session data in those directories. This is useful if you
  821. ; or your OS have problems with lots of files in one directory, and is
  822. ; a more efficient layout for servers that handle lots of sessions.
  823. ; NOTE 1: PHP will not create this directory structure automatically.
  824. ; You can use the script in the ext/session dir for that purpose.
  825. ; NOTE 2: See the section on garbage collection below if you choose to
  826. ; use subdirectories for session storage
  827. session.save_path = /tmp
  828.  
  829. ; Whether to use cookies.
  830. session.use_cookies = 1
  831.  
  832. ; This option enables administrators to make their users invulnerable to
  833. ; attacks which involve passing session ids in URLs; defaults to 0.
  834. ; session.use_only_cookies = 1
  835.  
  836. ; Name of the session (used as cookie name).
  837. session.name = PHPSESSID
  838.  
  839. ; Initialize session on request startup.
  840. session.auto_start = 0
  841.  
  842. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  843. session.cookie_lifetime = 0
  844.  
  845. ; The path for which the cookie is valid.
  846. session.cookie_path = /
  847.  
  848. ; The domain for which the cookie is valid.
  849. session.cookie_domain = "domain.com"
  850.  
  851. ; Handler used to serialize data. php is the standard serializer of PHP.
  852. session.serialize_handler = php
  853.  
  854. ; Define the probability that the 'garbage collection' process is started
  855. ; on every session initialization.
  856. ; The probability is calculated by using gc_probability/gc_divisor,
  857. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  858. ; on each request.
  859.  
  860. session.gc_probability = 1
  861. session.gc_divisor = 100
  862.  
  863. ; After this number of seconds, stored data will be seen as 'garbage' and
  864. ; cleaned up by the garbage collection process.
  865. session.gc_maxlifetime = 1440
  866.  
  867. ; NOTE: If you are using the subdirectory option for storing session files
  868. ; (see session.save_path above), then garbage collection does *not*
  869. ; happen automatically. You will need to do your own garbage
  870. ; collection through a shell script, cron entry, or some other method.
  871. ; For example, the following script would is the equivalent of
  872. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  873. ; cd /path/to/sessions; find -cmin +24 | xargs rm
  874.  
  875. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  876. ; to initialize a session variable in the global scope, albeit register_globals = Off;
  877. ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
  878. ; You can disable the feature and the warning separately. At this time,
  879. ; the warning is only displayed, if bug_compat_42 is enabled.
  880.  
  881. session.bug_compat_42 = 1
  882. session.bug_compat_warn = 1
  883.  
  884. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  885. ; HTTP_REFERER has to contain this substring for the session to be
  886. ; considered as valid.
  887. session.referer_check =
  888.  
  889. ; How many bytes to read from the file.
  890. session.entropy_length = 0
  891.  
  892. ; Specified here to create the session id.
  893. session.entropy_file =
  894.  
  895. ;session.entropy_length = 16
  896.  
  897. ;session.entropy_file = /dev/urandom
  898.  
  899. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  900. ; or leave this empty to avoid sending anti-caching headers.
  901. session.cache_limiter = nocache
  902.  
  903. ; Document expires after n minutes.
  904. session.cache_expire = 180
  905.  
  906. ; trans sid support is disabled by default.
  907. ; Use of trans sid may risk your users security.
  908. ; Use this option with caution.
  909. ; - User may send URL contains active session ID
  910. ; to other person via. email/irc/etc.
  911. ; - URL that contains active session ID may be stored
  912. ; in publically accessible computer.
  913. ; - User may access your site with the same session ID
  914. ; always using URL stored in browser's history or bookmarks.
  915. session.use_trans_sid = 0
  916.  
  917. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  918. ; form/fieldset are special; if you include them here, the rewriter will
  919. ; add a hidden <input> field with the info which is otherwise appended
  920. ; to URLs. If you want XHTML conformity, remove the form entry.
  921. ; Note that all valid entries require a "=", even if no value follows.
  922. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  923.  
  924. [MSSQL]
  925. ; Allow or prevent persistent links.
  926. mssql.allow_persistent = On
  927.  
  928. ; Maximum number of persistent links. -1 means no limit.
  929. mssql.max_persistent = -1
  930.  
  931. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  932. mssql.max_links = -1
  933.  
  934. ; Minimum error severity to display.
  935. mssql.min_error_severity = 10
  936.  
  937. ; Minimum message severity to display.
  938. mssql.min_message_severity = 10
  939.  
  940. ; Compatability mode with old versions of PHP 3.0.
  941. mssql.compatability_mode = Off
  942.  
  943. ; Connect timeout
  944. ;mssql.connect_timeout = 5
  945.  
  946. ; Query timeout
  947. ;mssql.timeout = 60
  948.  
  949. ; Valid range 0 - 2147483647. Default = 4096.
  950. ;mssql.textlimit = 4096
  951.  
  952. ; Valid range 0 - 2147483647. Default = 4096.
  953. ;mssql.textsize = 4096
  954.  
  955. ; Limits the number of records in each batch. 0 = all records in one batch.
  956. ;mssql.batchsize = 0
  957.  
  958. ; Specify how datetime and datetim4 columns are returned
  959. ; On => Returns data converted to SQL server settings
  960. ; Off => Returns values as YYYY-MM-DD hh:mm:ss
  961. ;mssql.datetimeconvert = On
  962.  
  963. ; Use NT authentication when connecting to the server
  964. mssql.secure_connection = Off
  965.  
  966. ; Specify max number of processes. Default = 25
  967. ;mssql.max_procs = 25
  968.  
  969. [Assertion]
  970. ; Assert(expr); active by default.
  971. ;assert.active = On
  972.  
  973. ; Issue a PHP warning for each failed assertion.
  974. ;assert.warning = On
  975.  
  976. ; Don't bail out by default.
  977. ;assert.bail = Off
  978.  
  979. ; User-function to be called if an assertion fails.
  980. ;assert.callback = 0
  981.  
  982. ; Eval the expression with current error_reporting(). Set to true if you want
  983. ; error_reporting(0) around the eval().
  984. ;assert.quiet_eval = 0
  985.  
  986. [Ingres II]
  987. ; Allow or prevent persistent links.
  988. ingres.allow_persistent = On
  989.  
  990. ; Maximum number of persistent links. -1 means no limit.
  991. ingres.max_persistent = -1
  992.  
  993. ; Maximum number of links, including persistents. -1 means no limit.
  994. ingres.max_links = -1
  995.  
  996. ; Default database (format: [node_id::]dbname[/srv_class]).
  997. ingres.default_database =
  998.  
  999. ; Default user.
  1000. ingres.default_user =
  1001.  
  1002. ; Default password.
  1003. ingres.default_password =
  1004.  
  1005. [Verisign Payflow Pro]
  1006. ; Default Payflow Pro server.
  1007. pfpro.defaulthost = "test-payflow.verisign.com"
  1008.  
  1009. ; Default port to connect to.
  1010. pfpro.defaultport = 443
  1011.  
  1012. ; Default timeout in seconds.
  1013. pfpro.defaulttimeout = 30
  1014.  
  1015. ; Default proxy IP address (if required).
  1016. ;pfpro.proxyaddress =
  1017.  
  1018. ; Default proxy port.
  1019. ;pfpro.proxyport =
  1020.  
  1021. ; Default proxy logon.
  1022. ;pfpro.proxylogon =
  1023.  
  1024. ; Default proxy password.
  1025. ;pfpro.proxypassword =
  1026.  
  1027. [com]
  1028. ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
  1029. ;com.typelib_file =
  1030. ; allow Distributed-COM calls
  1031. ;com.allow_dcom = true
  1032. ; autoregister constants of a components typlib on com_load()
  1033. ;com.autoregister_typelib = true
  1034. ; register constants casesensitive
  1035. ;com.autoregister_casesensitive = false
  1036. ; show warnings on duplicate constat registrations
  1037. ;com.autoregister_verbose = true
  1038.  
  1039. [Printer]
  1040. ;printer.default_printer = ""
  1041.  
  1042. [mbstring]
  1043. ; language for internal character representation.
  1044. ;mbstring.language = Japanese
  1045.  
  1046. ; internal/script encoding.
  1047. ; Some encoding cannot work as internal encoding.
  1048. ; (e.g. SJIS, BIG5, ISO-2022-*)
  1049. ;mbstring.internal_encoding = EUC-JP
  1050.  
  1051. ; http input encoding.
  1052. ;mbstring.http_input = auto
  1053.  
  1054. ; http output encoding. mb_output_handler must be
  1055. ; registered as output buffer to function
  1056. ;mbstring.http_output = SJIS
  1057.  
  1058. ; enable automatic encoding translation accoding to
  1059. ; mbstring.internal_encoding setting. Input chars are
  1060. ; converted to internal encoding by setting this to On.
  1061. ; Note: Do _not_ use automatic encoding translation for
  1062. ; portable libs/applications.
  1063. ;mbstring.encoding_translation = Off
  1064.  
  1065. ; automatic encoding detection order.
  1066. ; auto means
  1067. ;mbstring.detect_order = auto
  1068.  
  1069. ; substitute_character used when character cannot be converted
  1070. ; one from another
  1071. ;mbstring.substitute_character = none;
  1072.  
  1073. ; overload(replace) single byte functions by mbstring functions.
  1074. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
  1075. ; etc. Possible values are 0,1,2,4 or combination of them.
  1076. ; For example, 7 for overload everything.
  1077. ; 0: No overload
  1078. ; 1: Overload mail() function
  1079. ; 2: Overload str*() functions
  1080. ; 4: Overload ereg*() functions
  1081. ;mbstring.func_overload = 0
  1082.  
  1083. [FrontBase]
  1084. ;fbsql.allow_persistent = On
  1085. ;fbsql.autocommit = On
  1086. ;fbsql.default_database =
  1087. ;fbsql.default_database_password =
  1088. ;fbsql.default_host =
  1089. ;fbsql.default_password =
  1090. ;fbsql.default_user = "_SYSTEM"
  1091. ;fbsql.generate_warnings = Off
  1092. ;fbsql.max_connections = 128
  1093. ;fbsql.max_links = 128
  1094. ;fbsql.max_persistent = -1
  1095. ;fbsql.max_results = 128
  1096. ;fbsql.batchSize = 1000
  1097.  
  1098. [Crack]
  1099. ; Modify the setting below to match the directory location of the cracklib
  1100. ; dictionary files. Include the base filename, but not the file extension.
  1101. ; crack.default_dictionary = "c:\php\lib\cracklib_dict"
  1102.  
  1103. [exif]
  1104. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  1105. ; With mbstring support this will automatically be converted into the encoding
  1106. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  1107. ; is used. For the decode settings you can distinguish between motorola and
  1108. ; intel byte order. A decode setting cannot be empty.
  1109. ;exif.encode_unicode = ISO-8859-15
  1110. ;exif.decode_unicode_motorola = UCS-2BE
  1111. ;exif.decode_unicode_intel = UCS-2LE
  1112. ;exif.encode_jis =
  1113. ;exif.decode_jis_motorola = JIS
  1114. ;exif.decode_jis_intel = JIS
  1115.  
  1116. ; Local Variables:
  1117. ; tab-width: 4
  1118. ; End:
  1119.  
  1120.  
  1121. [Zend]
  1122. zend_optimizer.optimization_level=15
  1123. zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
  1124. zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
  1125. zend_optimizer.version=3.3.0
  1126.  
  1127.  
  1128.  
  1129.  
  1130. zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
  1131. zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
  1132.  

apache/lynux server

PHP Version: 5.2.5
SQL Version: 5.0.51a-community-log
GD Version: 2 or Better

Thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,073
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php.ini confusion

 
0
  #2
Aug 6th, 2008
If you probably be easier for you to look at it from the client side.

If you use Firefox, install the Firebug extension, and take a look at the cookies being sent in the HTTP headers.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

Re: php.ini confusion

 
0
  #3
Aug 6th, 2008
k.. then what?
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,073
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php.ini confusion

 
0
  #4
Aug 6th, 2008
Originally Posted by midget View Post
k.. then what?
Take a look at the PHP session cookies and find where it is being dropped.

If you post the results here someone may see a correlation.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

Re: php.ini confusion

 
0
  #5
Aug 6th, 2008
Originally Posted by digital-ether View Post
Take a look at the PHP session cookies and find where it is being dropped.

If you post the results here someone may see a correlation.

Okay I'll try that - see if I can figure out firebug here. . .
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

Re: php.ini confusion

 
0
  #6
Aug 6th, 2008
Originally Posted by digital-ether View Post
Take a look at the PHP session cookies and find where it is being dropped.

If you post the results here someone may see a correlation.
not sure how this will help exactly - the first set are the headers from the php.ini file that keeps you logged in - the first session id is the only one I am concerned with - and it is always there - so I dunno but if this helps someone help me that's great...

  1. Host domain.com
  2. User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
  3. Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  4. Accept-Language en-us,en;q=0.5
  5. Accept-Encoding gzip,deflate
  6. Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  7. Keep-Alive 300
  8. Connection keep-alive
  9. Cookie PHPSESSID=3eda5cdc7c201d2089bda2e5a7b2399d; phpbb3_jnspi_u=53; phpbb3_jnspi_k=; phpbb3_jnspi_sid=d3cc59dc87af2e5b18e97dee9a23a2a3
  10.  
This is the page I go to and wanna stay logged in and Ido with the first php.ini file and this is with that file

  1.  
  2. Host blog.domain.com
  3. User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
  4. Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  5. Accept-Language en-us,en;q=0.5
  6. Accept-Encoding gzip,deflate
  7. Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  8. Keep-Alive 300
  9. Connection keep-alive
  10. Referer http://domain.com/members_area.php
  11. Cookie PHPSESSID=3eda5cdc7c201d2089bda2e5a7b2399d; phpbb3_jnspi_u=53; phpbb3_jnspi_k=; phpbb3_jnspi_sid=d3cc59dc87af2e5b18e97dee9a23a2a3
  12.  
  13. /
  14.  

now these two are from the php.ini file that logs me out when I go from one to the next?

this is the first page where you are logged in

  1.  
  2. Host domain.com
  3. User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
  4. Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  5. Accept-Language en-us,en;q=0.5
  6. Accept-Encoding gzip,deflate
  7. Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  8. Keep-Alive 300
  9. Connection keep-alive
  10. Cookie PHPSESSID=3eda5cdc7c201d2089bda2e5a6c2399d; phpbb3_jnspi_u=53; phpbb3_jnspi_k=; phpbb3_jnspi_sid=365ed13cce41fe62c432c5fee754ea8k
  11.  

this is the second page where you are not? The look the same to me - so maybe this isn't the info you are asking for?

  1.  
  2. Host blog.domain.com
  3. User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
  4. Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  5. Accept-Language en-us,en;q=0.5
  6. Accept-Encoding gzip,deflate
  7. Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  8. Keep-Alive 300
  9. Connection keep-alive
  10. Referer http://domain.com/members_area.php
  11. Cookie PHPSESSID=3eda5cdc7c201d2089bda2e5a6c2399d; phpbb3_jnspi_u=53; phpbb3_jnspi_k=; phpbb3_jnspi_sid=365ed13cce41fe62c432c5fee754ea8k
  12.  
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,073
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php.ini confusion

 
0
  #7
Aug 7th, 2008
Could you post the HTTP Response from the server on the page you are logged out?

It looks like those are the HTTP Requests made by the browser.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

Re: php.ini confusion

 
0
  #8
Aug 7th, 2008
Originally Posted by digital-ether View Post
Could you post the HTTP Response from the server on the page you are logged out?

It looks like those are the HTTP Requests made by the browser.
yeah okay -told you I was a genius - first one works - second one doesn't


  1. Response Headers
  2. Date: Thu, 07 Aug 2008 14:39:52 GMT
  3. Server: HTTPD Server
  4. X-Powered-By: PHP/5.2.5
  5. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  6. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  7. Pragma: no-cache
  8. Keep-Alive: timeout=5, max=100
  9. Connection: Keep-Alive
  10. Transfer-Encoding: chunked
  11. Content-Type: text/html; charset=UTF-8



  1. Response Headers
  2. Date Thu, 07 Aug 2008 14:44:41 GMT
  3. Server HTTPD Server
  4. Expires Thu, 19 Nov 1981 08:52:00 GMT
  5. Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  6. Pragma no-cache
  7. Content-Encoding gzip
  8. Vary Accept-Encoding
  9. Keep-Alive timeout=5, max=100
  10. Connection Keep-Alive
  11. Transfer-Encoding chunked
  12. Content-Type text/html; charset=UTF-8
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,073
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php.ini confusion

 
0
  #9
Aug 9th, 2008
Originally Posted by midget View Post
yeah okay -told you I was a genius - first one works - second one doesn't


  1. Response Headers
  2. Date: Thu, 07 Aug 2008 14:39:52 GMT
  3. Server: HTTPD Server
  4. X-Powered-By: PHP/5.2.5
  5. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  6. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  7. Pragma: no-cache
  8. Keep-Alive: timeout=5, max=100
  9. Connection: Keep-Alive
  10. Transfer-Encoding: chunked
  11. Content-Type: text/html; charset=UTF-8



  1. Response Headers
  2. Date Thu, 07 Aug 2008 14:44:41 GMT
  3. Server HTTPD Server
  4. Expires Thu, 19 Nov 1981 08:52:00 GMT
  5. Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  6. Pragma no-cache
  7. Content-Encoding gzip
  8. Vary Accept-Encoding
  9. Keep-Alive timeout=5, max=100
  10. Connection Keep-Alive
  11. Transfer-Encoding chunked
  12. Content-Type text/html; charset=UTF-8
So these are the HTTP Response Headers when the session fails?

  1. Response Headers
  2. Date Thu, 07 Aug 2008 14:44:41 GMT
  3. Server HTTPD Server
  4. Expires Thu, 19 Nov 1981 08:52:00 GMT
  5. Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  6. Pragma no-cache
  7. Content-Encoding gzip
  8. Vary Accept-Encoding
  9. Keep-Alive timeout=5, max=100
  10. Connection Keep-Alive
  11. Transfer-Encoding chunked
  12. Content-Type text/html; charset=UTF-8

It doesn't show a request set the session cookie, which is what would happen if the session cookie could not be read.
The browser still also shows the correct session cookie (the value hasn't changed). Which would mean the session was still valid.

The only think I can think of would be to post the whole process.
Start with no PHP session on each server.

ie:

start firefox by typing the following into the command prompt.

windows:

  1. start firefox -P --no-remote

Linux:

  1. pkill firefox
  2. firefox -P &

Create a new profile just for the session.

Install Firebug on that profile.

Turn on HTTP monitoring in Firebug for the domains you want to observe.

Copy each HTTP Request and Response headers from the setting of the PHP session on the first domain, and its drop on the second domain. Make sure to include the URL, with parameters (POST will show the parameters separately in Firebug)

I'd expect somewhere along the line, you should see a difference that notes why one domain is dropping the session and the other isn't.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 18
Reputation: midget is an unknown quantity at this point 
Solved Threads: 0
midget midget is offline Offline
Newbie Poster

Re: php.ini confusion

 
0
  #10
Aug 10th, 2008
Originally Posted by digital-ether View Post
So these are the HTTP Response Headers when the session fails?

  1. Response Headers
  2. Date Thu, 07 Aug 2008 14:44:41 GMT
  3. Server HTTPD Server
  4. Expires Thu, 19 Nov 1981 08:52:00 GMT
  5. Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  6. Pragma no-cache
  7. Content-Encoding gzip
  8. Vary Accept-Encoding
  9. Keep-Alive timeout=5, max=100
  10. Connection Keep-Alive
  11. Transfer-Encoding chunked
  12. Content-Type text/html; charset=UTF-8

It doesn't show a request set the session cookie, which is what would happen if the session cookie could not be read.
The browser still also shows the correct session cookie (the value hasn't changed). Which would mean the session was still valid.

The only think I can think of would be to post the whole process.
Start with no PHP session on each server.

ie:

start firefox by typing the following into the command prompt.

windows:

  1. start firefox -P --no-remote

Linux:

  1. pkill firefox
  2. firefox -P &

Create a new profile just for the session.

Install Firebug on that profile.

Turn on HTTP monitoring in Firebug for the domains you want to observe.

Copy each HTTP Request and Response headers from the setting of the PHP session on the first domain, and its drop on the second domain. Make sure to include the URL, with parameters (POST will show the parameters separately in Firebug)

I'd expect somewhere along the line, you should see a difference that notes why one domain is dropping the session and the other isn't.

okay I'll try that - thanks
Last edited by midget; Aug 10th, 2008 at 7:42 pm. Reason: misunderstood
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC