Index: phpdoc/fr/functions/outcontrol.xml diff -u phpdoc/fr/functions/outcontrol.xml:1.1 phpdoc/fr/functions/outcontrol.xml:1.2 --- phpdoc/fr/functions/outcontrol.xml:1.1 Sat Sep 2 03:57:09 2000 +++ phpdoc/fr/functions/outcontrol.xml Tue Oct 31 05:54:01 2000 @@ -1,28 +1,29 @@ - Output Control Functions - Output Control + Entrées/sorties + Entrées/sorties - The Output Control functions allow you to control when output is - sent from the script. This can be useful in several different - situations, especially if you need to send headers to the browser - after your script has began outputing data. The Output Control - functions do not affect headers sent using - header or setcookie, - only functions such as echo and data between - blocks of PHP code. + Les fonctions d'entrée/sorties vous permettent de contrôler + quand les données sont envoyées par le script. Cela peut + être utile dans certaines situations, notamment si vous devez + envoyer des entêtes au navigateur après avoir envoyé + des données. Ces fonctions n'affectent pas les entêtes + envoyés par la fonction header ou les + cookies envoyés par setcookie. Seules les + fonctions telles que echo et les données entre + blocs PHP sont affectés. - Output Control example + Exemple de gestion des sorties <?php ob_start(); -echo "Hello\n"; +echo "Bonjour\n"; -setcookie ("cookiename", "cookiedata"); +setcookie ("nom_du_cookie", "valeur_du_cookie"); ob_end_flush(); @@ -31,16 +32,15 @@ - In the above example, the output from echo - would be stored in the output buffer until - ob_end_flush was called. In the mean time, - the call to setcookie successfully stored a - cookie without causing an error. (You can not normally send - headers to the browser after data has already been sent.) + Dans l'exemple ci-dessus, la fonction echo + est stockée dans un buffer jusqu'à l'appel de la fonction + ob_end_flush was called. Dans le même + temps, l'appel à setcookie a réussi + à créer un cookie, sans générer d'erreur. + (D'habitude, vous devez envoyer les entêtes avant les données). - See also header and - setcookie. + Voir aussi header et setcookie. @@ -56,7 +56,7 @@ - Vide les buffers de sortie de PHP et toud ceux que PHP utilisait + Vide les buffers de sortie de PHP et tous ceux que PHP utilisait (CGI, un serveur web, etc.). @@ -65,7 +65,7 @@ ob_start - Turn on output buffering + Enclenche la bufferisation de sortie Description @@ -76,24 +76,20 @@ - This function will turn output buffering on. While output buffering - is active no output is sent from the script, instead the output - is stored in an internal buffer. - - - The contents of this internal buffer may be copied into a string - variable using ob_get_contents. To output - what is stored in the internal buffer, use - ob_end_flush. Alternatively, - ob_end_clean will silently discard the - buffer contents. - - - See also ob_get_contents, - ob_end_flush, - ob_end_clean, and - ob_implicit_flush + Cette fonction démarre la bufferisation de sortie. Tant qu'elle est + enclenchée, aucune données n'est envoyée au client web, + mais temporairement mis en buffer. + + Le contenu de ce buffer peut être copié dans une chaîne + avec la fonction ob_get_contents. Pour afficher le + contenu de ce buffer, utilisez ob_end_flush. Au + contraire, ob_end_clean effacera le contenu de ce buffer. + + + Voir aussi ob_get_contents,ob_end_flush, + ob_end_clean, et ob_implicit_flush + @@ -101,7 +97,7 @@ ob_get_contents - Return the contents of the output buffer + Retourne le contenu du buffer de sortie @@ -113,12 +109,11 @@ - This will return the contents of the output buffer or FALSE, if - output buffering isn't active. + Cette fonction retourne le contenu du buffer de sortie si la bufferisation + est active, ou FALSE sinon. - See also ob_start and - ob_get_length. + Voir aussi ob_start et ob_get_length. @@ -127,7 +122,7 @@ ob_get_length - Return the length of the output buffer + Retourne la longueur du contenu du buffer de sortie @@ -139,12 +134,11 @@ - This will return the length of the contents in the output buffer - or FALSE, if output buffering isnt't active. + Cette fonction retourne la longueur du contenu du buffer de sortie si la + bufferisation est activée, et FALSE sinon. - See also ob_start and - ob_get_contents. + Voir aussi ob_start et ob_get_contents. @@ -153,7 +147,8 @@ ob_end_flush - Flush (send) the output buffer and turn off output buffering + Envoie les données du buffer de sortie, et éteind la + bufferisation de sortie @@ -165,16 +160,16 @@ - This function will send the contents of the output buffer (if - any) and turn output buffering off. If you want to further - process the buffer's contents you have to call - ob_get_contents before - ob_end_flush as the buffer contents are - discarded after ob_get_contents is called. + Cette fonction envoie le contenu du buffer de sortie (si il existe) + et éteind la bufferisation de sortie. Si vous voulez continuer à + manipuler la valeur du buffer, vous pouvez appeler + ob_get_contents avant ob_end_flush + car le contenu du buffer est détruit après un appel à + ob_get_contents. - See also ob_start, - ob_get_contents, and + Voir aussi ob_start, + ob_get_contents, et ob_end_clean. @@ -184,7 +179,8 @@ ob_end_clean - Clean (erase) the output buffer and turn off output buffering + Détruit es données du buffer de sortie, et éteind + la bufferisation de sortie @@ -196,11 +192,11 @@ - This function discards the contents of the output buffer and - turns off output buffering. + Cette fonction détruit les données du buffer de sortie, + et éteind la bufferisation. - See also ob_start and + Voir aussi ob_start et ob_end_flush. @@ -210,7 +206,7 @@ ob_implicit_flush - Turn implicit flush on/off + Active/désactive l'envoi implicite @@ -224,20 +220,22 @@ - ob_implicit_flush will turn implicit - flushing on or off (if no flag is given, - it defaults to on). Implicit flushing will result in a flush - operation after every output call, so that explicit calls to - flush will no longer be needed. + ob_implicit_flush active/désactive + l'envoi implicite (si flag est fourni. + Par défaut, il est activé). L'envoi implicite + signifie que toute fonction qui envoie des données + au client web veront leurs données envoyées + immédiatement (la fonction flush + est appelée automatiquement). - Turning implicit flushing on will disable output buffering, the - output buffers current output will be sent as if - ob_end_flush had been called. + Une fois que l'envoi implicite est desactivé, le buffer de sortie ne + sera envoyé qu'au moment de l'appel de + ob_end_flush. - See also flush, - ob_start, and + Voir aussi flush, + ob_start, et ob_end_flush.