Accueil   Accueil    Forum   Forum    Download   Download    Livre d'or   Livre d'or    Contact   Contact    Liens Web   Liens Web

Problème liés à l'utilisation du module fam - CMS KwsPHP - Le site clés en main

Colonne de gauche

Espace membre

Privé Masquer le formulaire de connexion


Se souvenir de moi ?


Mot de passe oublié

Menu

Forum

Sujets Importants

fleche basForum : Masquer l’entête

Accès rapide :

 

Effectuer une Recherche avancée OU


fleche basProblème liés à l'utilisation du module fam   [6 réponses]

fleche bas

samacab
starsj1.png
Newbie


avatar
Hors ligne

Nombre de posts: 5
Inscrit(e) le: 24 janvier 2012
Visiter son site
Imprimer Permalien jeudi 9 février 2012 à 15:16  
Boujour,
Je ne voudrai pas paraître insistant mais j'ai déjà posé mon problème sur ce forum, le post n'étant pas remonté (et donc sans réponse) j'ai pris la liberté d'en créé un nouveau (après avoir aussi essayer de contacter Julkien par mail).

Donc pour vous réexpliquer le souci je suis sur un projet de site associatif pour appuyer mon association et apporté un petit plus. L'association a pour but la promotion des artistes électronique de la région Rhone-Alpes.

Après avoir fais le tour des plates-formes CMS je me suis tourné vers KwsPHP car elle est pour moi, la plus modulable et la plus conviviale. J'ai par la suite installé le fantastique module complémentaire FAM de julkien qui correspond exactement à ce que je voulais faire mais plusieurs petits souçi se sont mis en travers de mon chemin et je n'es absolument pas le niveau d'y répondre seul je viens donc vous demander un peu d'aide si vous le voulez bien.

Premier souci :

Sur la page d'upload je ne peux pas uploader de gros morceaux (30Mo) une erreur "format incorrect" apparaît sans cesse
De plus pour les uploads je ne peux pas mettre des morceaux encodé au dessus de 128kbps ce qui est très faible au niveau qualité.
Si je pouvais modifier ces deux paramètres ça serait déjà énorme.

Les autres soucis sont mineures je les exposerai après car il ne presse pas et j'aimerai assez trouver une solution tout seul.

Cordialement,


Ps: voici le code de la page destinée aux upload de fichiers son (vous remarquerez que j'ai déj modifier les deux ini set sans résultat):


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2.  
  3.  
  4. bloc_head('upload');
  5.  
  6. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  7.  
  8. if(get_grade() >= GRD_MEMBR)
  9.                {
  10.  
  11. // Taille maximum
  12.  
  13. //ini_set(max_input_time, 9999);
  14. //ini_set(set_time_limit, 9999);
  15.  
  16. if ($sql_photo =='')
  17. {
  18. $MAX_FILE_SIZE = 10000000;
  19. }
  20. else
  21. {
  22.   $MAX_FILE_SIZE = 256000;
  23. }
  24.  
  25. // Dossier de destination du fichier
  26.  
  27. if ($sql_mp3 ==1)
  28. {
  29. $folder = "modules/fam/mp3/";
  30. }
  31. if ($sql_photo ==1)
  32. {
  33. $folder = "modules/fam/membre/";
  34. }
  35. if ($sql_photo ==2)
  36. {
  37. $folder = "modules/fam/membre/";
  38. }
  39. if ($sql_album ==1)
  40. {
  41. $folder = "modules/fam/album/";
  42. }
  43. if ($sql_admin ==1)
  44. {
  45. $folder = "modules/fam/membre/";
  46. }
  47. // Tableau array des différents types
  48. $allowed_types = array("audio/mpeg-mp3", "image/gif", "image/pjpeg", "image/jpeg", "image/jpg");
  49.  
  50. // Variables récupérée par methode POST du formulaires
  51. $fname = $HTTP_POST_FILES['fichier']['name'];
  52. $ftype = $HTTP_POST_FILES['fichier']['type'];
  53. $fsize = $HTTP_POST_FILES['fichier']['size'];
  54. $ftmp = $HTTP_POST_FILES['fichier']['tmp_name'];
  55.  
  56. // Diverses test afin de savoir si :
  57. // Le format de fichier correspond à notre tableau array
  58. if(!in_array($ftype, $allowed_types)){$error = 1;}
  59.  
  60. // La taille du fichier n'est pas dépassée
  61. if($fize > $MAX_FILE_SIZE){$error = 2;}
  62.  
  63. // Le fichier n'existe pas déjà
  64. if(file_exists($folder."m_".$fname)){$error = 3;}
  65.  
  66. // Si tout va bien, c'est bien déroulé
  67. if(copy($ftmp,''.$folder.''.$fname.'')) {$error = 0;}
  68.  
  69. // Switch servant simplement à la gestion des erreures
  70. switch($error){
  71. case'0':
  72. if ($sql_new ==1)
  73. {
  74. header('Location: index.php?mod=fam&ac=modif&int_id='.$int_id.'&sql_pseudo='.$K_user->pseudo.'&sql_new=1&sql_fichier='.$fname.'');
  75. }
  76. if ($sql_new ==2)
  77. {
  78. header('Location: index.php?mod=fam&ac=modif&int_id='.$int_id.'&sql_pseudo='.$K_user->pseudo.'&sql_new=2&sql_fichier='.$fname.'');
  79. }
  80. if ($sql_photo ==1)
  81. {
  82. reqmysql('INSERT INTO `fam_membre` SET `image_artiste` ="'.$fname.'", `artiste`="'.$K_user->pseudo.'" ;');
  83. header('Location: index.php?mod=fam&ac=formulaire&sql_validation=ok');
  84. }
  85. if ($sql_photo ==2)
  86. {
  87. reqmysql('UPDATE `fam_membre` SET `image_artiste` ="'.$fname.'" WHERE `artiste`="'.$K_user->pseudo.'" ;');
  88. header('Location: index.php?mod=fam&ac=mes_titres');
  89. }
  90. if ($sql_album ==1)
  91. {
  92. reqmysql('UPDATE `fam_artiste` SET `image_album` ="'.$fname.'" WHERE `id`="'.$int_id.'" ;');
  93. header('Location: index.php?mod=fam&ac=mes_titres');
  94. }
  95. if ($sql_admin ==1)
  96. {
  97. reqmysql('UPDATE `fam_membre` SET `image_artiste` ="'.$fname.'" WHERE `artiste`="'.$int_id.'" ;');
  98. header('Location: index.php?mod=fam&ac=gestion_fiche&int_id='.$int_id.'');
  99. }
  100. break;
  101. case'1':
  102. echo("Format de fichier incorrecte.");
  103. break;
  104. case'2':
  105. echo("Fichier trop volumineux.");
  106. break;
  107. case'3':
  108. echo("Fichier déjà existant.");
  109. break;
  110. }
  111.  
  112.                    
  113. }
  114. close_table();
  115. ?> 



Infos CMS KwsPHP


Informations : Avant de poster un sujet sur le forum

Veuillez avant tout vérifiez la comparaison de vos fichiers sur votre site
Mon compte / Outils / Comparaison


La recherche avancée du forum (en ciblant au mieux les options de la recherche)
La Faq - La documentation - La documentation en vidéo - Le sujet "Install et Mise à jour"
Vous devez lire en priorité le topic de la 1.6 pour en découvrir ses fonctionnalités


Afficher



Imprimer Permalien jeudi 9 février 2012 à 18:19  
Slt,

C'est la ligne 22 que tu à modifié? Julkien à beaucoup de travail ces temps-ci et s'il ne te répond pas dans l'immédiat je suis sur que c'est parce qu'il est coupé du net. Encore un trou ou on capte pas la 3G smiley sg3agD.gif Patience, il va revenir. En attendant, indique moi ce que tu à modifié précisément afin de voir si l'un d'entre nous peut t'apporter un peut d'aide.


samacab
starsj1.png
Newbie


avatar
Hors ligne

Nombre de posts: 5
Inscrit(e) le: 24 janvier 2012
Visiter son site
Imprimer Permalien vendredi 10 février 2012 à 12:02  
Bonjour,
Merci de vous intéressé à mon problème j'ai modifié les valeurs au ligne 13/14/18 et 22 sans résultat visible.
Pas de problème pour le créateur du module j'ai compris qu'il devait avoir d'autre priorités c'est donc pour cela que j'ai posé la question ici.




σkarim10
starsj6.png
Dieu
Beta testeur


avatar
Hors ligne

Nombre de posts: 1583 (0.22/Jour)
Inscrit(e) le: 29 janvier 2007
E-mail Anti-spam Visiter son site
Imprimer Permalien dimanche 12 février 2012 à 05:31  
Bonjour,

Pour le premier problème cité, une limitation peut être fixé par ton hébergeur qui n'autorise pas l'upload d'un fichier (dont la taille est supérieure à celle qu'il a défini) à partir d'un formulaire. Il faudra donc procéder via le FTP.

Le mieux serait que tu te renseignes auprès de ton hébergeur pour voir s'il a défini une limite relative aux fichiers uploadés sur le site par l'entremise d'un formulaire.

Après, pour le code, ce n'est pas moi qui pourra t'aider...


Bon courage en tout cas.

Avant d'ouvrir un nouveau sujet, merci de consulter la FAQ, la documentation et de faire une recherche.


samacab
starsj1.png
Newbie


avatar
Hors ligne

Nombre de posts: 5
Inscrit(e) le: 24 janvier 2012
Visiter son site
Imprimer Permalien dimanche 19 février 2012 à 14:26  
Bonjour à tous,
Je me suis renseigné et en effet karim10 il semblerai bien qu'il y avait une limite relative.
Je vous explique la situation dans laquelle je me trouve maintenant.

J'ai commander un serveur virtuel chez 1and1, mise à jour de php et mysql et réinstallation et transfère de base de donnés jusque là pas de problème.
Mais au moment de me connecter sur le site une erreur apparait :


Citation :
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(./modules/tete_de_module.php/alerte.php) is not within the allowed path(s): (/var/www/vhosts/oxygene6tm.com/httpdocs/:/tmp/) in /var/www/vhosts/site.com/httpdocs/modules/alerte/scan.php on line 21/



(site.com remplace l'adresse actuel du site)
Cette erreur ce trouve sur index.php juste en dessous du module d'édito.
Si vous pouviez me guidé je ne comprend pas bien ou est le souci.


Merci

Réponse ci-dessus posté le dimanche 19 février 2012 : 11:32



Re bonjour tout le monde,
je viens de résoudre mon problème cité un peu plus haut.
Un souci de bibliotheque mysql qui ne correspondait pas à la version du serveur mysql.
J'ai donc tout refait mais là j'ai encore un code erreur au moment de l'upload d'un fichier mp3 un peu gros c'est incompréhensible pourtant j'ai bien modifié mon php.ini avec les nouvelles valeurs que je souhaite


Citation :
Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs/:/tmp/) in /var/www/vhosts/site.com/httpdocs/modules/fam/nouveau_up.php on line 67
Format de fichier incorrecte.



(site.com remplacant toujours l'adresse actuel de mon espace.)

Merci de me guidé là je ne pige plus rien du tout !
Y aurait'il une réstriction de taille dans la base de donnée?

Merci sam


Imprimer Permalien dimanche 19 février 2012 à 18:32  
Bonsoir,

Une simple recherche comme ceci : index.php?mod=recherche&sql_chaine_search=open_basedir%20restriction&sql_search_forum=on

Au hasard, tu prend le topic N° 3 : [R] open_basedir restriction in effect et tu va le parcourir, tu verra que la réponse à ce problème est donnée dans ce topic.Je te laisse parcourir le sujet il ne contient que 46 réponses, en plus je dois donner plusieurs fois la réponse dedans.




samacab
starsj1.png
Newbie


avatar
Hors ligne

Nombre de posts: 5
Inscrit(e) le: 24 janvier 2012
Visiter son site
Imprimer Permalien dimanche 18 mars 2012 à 15:00  
Bonjour,
j'avais lu ce post il y a quelques temps,
j'ai en effet modifié ma variable open_basedir mais j'ai toujours la même erreur.
Je joins le code de mon php.ini comme apparament la solution ce trouverai ici


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


Réponse ci-dessus posté le dimanche 26 février 2012 : 18:18



Up ! smiley sg3agzzg3ag.gif


fleche basProblème liés à l'utilisation du module fam   [6 réponses]