probleme code php readdir():

probleme code php readdir(): - PHP - Programmation

Marsh Posté le 30-01-2007 à 16:36:56    

bonjour
 
je cherche à développer une application qui permet de lister automatiquement les images d'un dossier sur mon site  
 
mais lors de la lecture du contenu du dossier j'ai l'erreur suivante
Warning: readdir(): 2 is not a valid Directory resource in /var/www/photo/index.php on line 40

 
j'ai chercher sur google mais je ne trouve pas d'erreur commune  
 
voici le début de mon code  
 

Code :
  1. <?
  2. //
  3. // SPA : Simple Photo Album.
  4. // version 0.2
  5. // author: Ilann Cohen - http://ilannweb.free.fr
  6. //
  7. //You may customize the parameters sections
  8. //
  9. // START OF PARAMETERS SECTION
  10. $doc_title = "Album generated by Simple Photo Album"; //web page title
  11. $columns=4;                  //number of images per line  
  12. $ratio=5;                    //ratio imageSize / thumbnailImageSize  
  13. $quality=5;                  //qualité des mignatures (0: faible à 100:bonne)
  14. $scriptname= "index.php";    //nom du script  
  15. $thumb_dir = "thumb";        //dossier pour créer les vignettes
  16. $thumb_prefix = "thumb_";    //prefix des images générées
  17. // END OF PARAMETERS SECTION
  18. echo "<html>\n<head>\n<title>$doc_title</title>\n";
  19. echo "<body bgcolor=white>\n</head>\n\n\n";
  20. echo  "<center>\n<P><BR><BR>\n\n";
  21. $mydirectory= ".";          //dossier contenant les images
  22. $counter=0;
  23. $nbfiles = 0;
  24. $currfile =  "";
  25. $filestab[0] =  "";
  26. $handle=opendir($mydirectory);
  27. //create a directory for thumbnail images
  28. if (! is_dir($thumb_dir))
  29. {
  30.    mkdir($thumb_dir, 0777);
  31. }
  32. //while ($currfile = readdir($handle))  
  33. while (false !== ($currfile = readdir($handle)))


 
merci d'avance


Message édité par k1k1one le 30-01-2007 à 16:57:38
Reply

Marsh Posté le 30-01-2007 à 16:36:56   

Reply

Marsh Posté le 30-01-2007 à 16:42:12    

ça veut dire que $handle n'est pas une ressource valide pour être utilisée avec readdir.
Lis la doc et teste le retour de tes appels de fonction.


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 16:54:46    

skeye a écrit :

ça veut dire que $handle n'est pas une ressource valide pour être utilisée avec readdir.
Lis la doc et teste le retour de tes appels de fonction.


 
Ok mais pourquoi alors sur la doc on me propose cette syntax?

Code :
  1. /* Ceci est la façon correcte de traverser un dossier. */
  2.    while (false !== ($file = readdir($handle))) {
  3.        echo "$file\n";

Message cité 1 fois
Message édité par k1k1one le 30-01-2007 à 16:55:13
Reply

Marsh Posté le 30-01-2007 à 16:56:52    

k1k1one a écrit :

Ok mais pourquoi alors sur la doc on me propose cette syntax?

Code :
  1. /* Ceci est la façon correcte de traverser un dossier. */
  2.    while (false !== ($file = readdir($handle))) {
  3.        echo "$file\n";


parce que dans la doc on te propose ça aussi :

Code :
  1. if ($handle = opendir('/chemin/vers/fichiers')) {

Reply

Marsh Posté le 30-01-2007 à 16:57:33    

C'est pas ce que je te dis.
Ton $handle n'est pas bien initialisé, semble-t'il.
Teste la valeur de retour de ton opendir.


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 17:04:07    

skeye a écrit :

C'est pas ce que je te dis.
Ton $handle n'est pas bien initialisé, semble-t'il.
Teste la valeur de retour de ton opendir.


 
opendir me retourne ceci  
 

Code :
  1. Resource id #2
  2. Warning: readdir(): 2 is not a valid Directory resource in /var/www/photo/index.php on line 41


Message édité par k1k1one le 30-01-2007 à 17:04:47
Reply

Marsh Posté le 30-01-2007 à 17:07:29    

et tu fais quoi dans ton while?


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 17:11:21    

skeye a écrit :

et tu fais quoi dans ton while?


 
il s'agit d'un source que j'ai récupérer sur un site  
 
http://ilannweb.free.fr/
 
d'apres un autre forum j'ai juste a créer un dossier a balancer mes image dans ce dossier avec ce script que je nomme index.php et sur mon site faire appelle a mon index.php
 
je suis débutant en php
 
désoler de vous prendre de votre temps  :(  

Reply

Marsh Posté le 30-01-2007 à 17:13:44    

Donc si je comprends bien tu n'as même pas de dossier appelé "thumbs"?[:pingouino]


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 17:15:05    

skeye a écrit :

Donc si je comprends bien tu n'as même pas de dossier appelé "thumbs"?[:pingouino]


 
 il se créé automatiquement  
il permet de stocker les vignettes d'apercut des images  
 

Code :
  1. //créer le dossier qui contient les vignettes
  2. if (! is_dir($thumb_dir))
  3. {
  4.    mkdir($thumb_dir, 0777);
  5. }

Reply

Marsh Posté le 30-01-2007 à 17:15:05   

Reply

Marsh Posté le 30-01-2007 à 17:27:51    

Ah oui, j'avais mal regardé...du coup j'ai jeté un coup d'oeil aux sources, et  avec un bête copier/coller de ton lien ça marche (même s'il y a un léger soucis avec son $ishome, qui n'existe pas...il doit utiliser une vieille version de php qui autorise l'utilisation directe des paramètres de $_GET).


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 17:30:06    

skeye a écrit :

Ah oui, j'avais mal regardé...du coup j'ai jeté un coup d'oeil aux sources, et  avec un bête copier/coller de ton lien ça marche (même s'il y a un léger soucis avec son $ishome, qui n'existe pas...il doit utiliser une vieille version de php qui autorise l'utilisation directe des paramètres de $_GET).


 
 
 
chez toi ca marche???  :pt1cable:

Reply

Marsh Posté le 30-01-2007 à 17:30:39    

Très bien. Avec un simple copier/coller.


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 30-01-2007 à 18:35:09    

skeye a écrit :

Très bien. Avec un simple copier/coller.


 
 
Au lycée sa beug sur mon pc perso sa fonctionne  
 
probleme avec php??
 
comment pouvez vous me conseiller ?
 
les mysteres de l'informatique ne ferons que m'agacer...... :o  :o  :o  :o

Reply

Marsh Posté le 30-01-2007 à 19:22:25    

Config de php, les vilains register_global à on (par défaut sur les versions 4 puis off à partir de 5), les droits sur les dossiers, les autres paramètres de config, y'a plein de choses qui peuvent faire que ça marche à un endroit et pas à un autre surtout quand c'est pas les mêmes versions et que le code se base sur une mauvaise config/laxisme de certaines fonctions :)

Reply

Marsh Posté le 31-01-2007 à 10:32:56    

leflos5 a écrit :

Config de php, les vilains register_global à on (par défaut sur les versions 4 puis off à partir de 5), les droits sur les dossiers, les autres paramètres de config, y'a plein de choses qui peuvent faire que ça marche à un endroit et pas à un autre surtout quand c'est pas les mêmes versions et que le code se base sur une mauvaise config/laxisme de certaines fonctions :)


 
bas j'ai fini par réinstaller php5 le truc maintenant j'ai une autre FATAL ERREUR
 
Fatal error: Call to undefined function: imagecreatefromjpeg()
 
alors je met en commentaire ceci:

Code :
  1. if (! file_exists($currthumbfile))
  2.         {
  3.            //GIF format is not supported anymore by GD lib...
  4.            if ($format == 2) //JPG
  5.                  $im = imagecreatefromjpeg($currfile);
  6.            else if ($format == 3) //PNG
  7.                  $im = imagecreatefrompng($currfile);
  8.            if (!$im)
  9.            {
  10.                $currthumbfile = $currfile;
  11.            }
  12.            else
  13.            { 
  14.               Imagejpeg($im, $currthumbfile, $quality);
  15.               ImageDestroy($im);
  16.            }
  17.         }


 
mais sa m'affiche une "cassé"

Reply

Marsh Posté le 31-01-2007 à 10:34:59    

il te manque la lib GD.


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 10:55:13    

skeye a écrit :

il te manque la lib GD.


 
j'ai installer libgd1  
libgd2  
à l'aide de synaptic mais il me met toujours la meme erreur

Reply

Marsh Posté le 31-01-2007 à 10:58:17    

il faut l'activer dans ton php.ini...


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:04:08    

skeye a écrit :

il faut l'activer dans ton php.ini...


 
désoler  
je trouve pas ou on retrouve la référence pour activer la librairie gd
 
es ici?

Code :
  1. ; Example lines:
  2. ;extension=mysql.so
  3. ;extension=gd.so

Reply

Marsh Posté le 31-01-2007 à 11:04:48    

c'est une question piège?[:pingouino]


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:06:56    

skeye a écrit :

c'est une question piège?[:pingouino]


 
non non j'ai juste a enlevé le ; pour enlevé le commentaire

Reply

Marsh Posté le 31-01-2007 à 11:08:39    

:sweat:
 
...non mais bien sûr que c'est ce qu'il faut faire pour activer l'extension...[:pingouino]


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:32:48    

skeye a écrit :

:sweat:
 
...non mais bien sûr que c'est ce qu'il faut faire pour activer l'extension...[:pingouino]


 
oulala sa me soul j'ai activer le gd j'ai redémarer le pc et maintenant il lit plus les php il me propose de telecharger la page quend je veu l'afficher ....
 
pffffffffffffffff   :fou:

Reply

Marsh Posté le 31-01-2007 à 11:38:38    

t'as dû péter autre chose...si tu démarres apache à la main tu as des messages d'erreur?:o


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:43:47    

skeye a écrit :

t'as dû péter autre chose...si tu démarres apache à la main tu as des messages d'erreur?:o


 
 
apache ce lance normalement
# /etc/init.d/apache2 start
 * Starting apache 2.0 web server...                                                             [ ok ]

Reply

Marsh Posté le 31-01-2007 à 11:46:28    

Et t'as rien touché d'autre que le commentaire dans ton php.ini?[:dawao]


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:49:20    

skeye a écrit :

Et t'as rien touché d'autre que le commentaire dans ton php.ini?[:dawao]


 
 
non  
 
la j'ai essaye de réinstraller php 5 et 4 toujours pareil  
 
pouvez vous me confiremer que c'est bien php qui n'est plus pris en compte par apache ?

Reply

Marsh Posté le 31-01-2007 à 11:50:14    

bah vu les symptômes, oui...pas normal. Si tu désactives de nouveau gd et que tu relances apache, même soucis?:o


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:51:14    

skeye a écrit :

bah vu les symptômes, oui...pas normal. Si tu désactives de nouveau gd et que tu relances apache, même soucis?:o


 
deja tenté  
 
pereil
 
pourquoi c'est toujours comme sa c'est quand on modifie un petit truc et sa plante général

Reply

Marsh Posté le 31-01-2007 à 11:51:59    

euh nan, chez moi ça marche.[:petrus75]
Demande sur OSA, peut-être?[:joce]


---------------
Can't buy what I want because it's free -
Reply

Marsh Posté le 31-01-2007 à 11:53:18    

skeye a écrit :

euh nan, chez moi ça marche.[:petrus75]
Demande sur OSA, peut-être?[:joce]


 
 
ok ok  
 ba merci tout de meme de tout ce temps que je vous fait perdre  :jap:  
 
j'y arriverais un jour j'y arriverais.....  ;)

Reply

Marsh Posté le 31-01-2007 à 15:21:07    

T'as du bouffer un truc dans le php.ini quand même :D
 
Pas besoin de tout réinstaller quand t'as un petit souci, suffit de chercher ce qui va pas, le modifier et redémarrer apache (pas tout le pc ;) )
 
T'as vraiment rien touché d'autre que php :??: Même pas une petite ligne dans le httpd.conf :whistle: Balances ton php.ini si non doit y'avoir un truc qui a sauté ;)
 
Tu as bien utilisé le php.ini de base livré avec la version de php que tu as installée :??:

Reply

Marsh Posté le 31-01-2007 à 15:54:25    

leflos5 a écrit :

T'as du bouffer un truc dans le php.ini quand même :D
 
Pas besoin de tout réinstaller quand t'as un petit souci, suffit de chercher ce qui va pas, le modifier et redémarrer apache (pas tout le pc ;) )
 
T'as vraiment rien touché d'autre que php :??: Même pas une petite ligne dans le httpd.conf :whistle: Balances ton php.ini si non doit y'avoir un truc qui a sauté ;)
 
Tu as bien utilisé le php.ini de base livré avec la version de php que tu as installée :??:


 
 
je pourrez poster mon php.ini que demain
 
j'ai juste modifier se que m'a dit skeye et j'ai modifier le php ini que l'on trouve dans /etc/php5/

Reply

Marsh Posté le 01-02-2007 à 08:11:27    

bonjour
voici donc mon php.ini  
 

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

Reply

Marsh Posté le 01-02-2007 à 10:42:22    

C'est fait exprés que les extensions déclaré tout à la fin de ton fichier ini aprés tout le reste?
De mémoire chez moi, j'ai les réglages génériques de php puis la liste des modules puis les paramétres des modules.

Reply

Marsh Posté le 01-02-2007 à 11:17:48    

omega2 a écrit :

C'est fait exprés que les extensions déclaré tout à la fin de ton fichier ini aprés tout le reste?
De mémoire chez moi, j'ai les réglages génériques de php puis la liste des modules puis les paramétres des modules.


 
 
 
bas je sais pas si l'ordre des extentions dans le php.ini a une réelle importance?

Reply

Marsh Posté le 01-02-2007 à 11:20:11    

k1k1one > Vu que j'ai toujours respecté l'ordre initial des fichiers ini d'un programme, je ne sais pas non plus. Je me posais juste la question par ce que c'est le seul truc qui m'a sauté aux yeux.

Reply

Marsh Posté le 01-02-2007 à 13:12:01    

A bah forcément, si tu mets les extensions dans la rubrique soap :D
 
En plus de ça, si c'est pour le développement à la maison, tu ferais mieux de faire quelques petites modif niveau affichage erreurs et des petits trucs de base n'ayant pas de rapport direct avec ton problème ;)
 

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


Message édité par leflos5 le 01-02-2007 à 13:16:51
Reply

Marsh Posté le 01-02-2007 à 18:46:53    

Ok. Et le code que tu m'a posté possede les modifications pourl es afiichage d'erreur.

Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed