PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () pàgina de visualització a la vegada, oblidar-se de galetes, capçaleres enviades errors massa aviat
Posted on 21. Publicat a 21. Aug, 2009 by Dragos in Coding , PHP Agost de 2009, per Dragos a la codificació, PHP
If you want to display your web pages at once, not subsequently, and reduce the “headers already sent, cannot send cookie information” errors, add ob_start() at the start of your script. Si voleu mostrar les seves pàgines web al mateix temps, no després, i reduir els "headers already sent, no pot enviar informació de les galetes" errors, afegir ob_start () al començament del seu script.
This function will turn output buffering on. Aquesta funció es convertirà en buffers de sortida. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. Mentre que el buffer de sortida s'activa no s'envia la sortida de la seqüència de comandaments (excepte els títols), en lloc de la sortida s'emmagatzema en un buffer intern. (php.net) php.net ()
You can also manipulate the contents of the output by using the function ob_get_contents() També pot manipular el contingut de la producció mitjançant l'ús de la ob_get_contents function ()
Related posts: Llocs relacionats amb:
- Browsing errors: пщщпду or пщщпдуюсщь Errors de navegació: пщщпду o пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: Com descarregar una pàgina web (també conegut com el desballestament de la web) amb PHP
- Coding:How to fetch user profile data with SSI.php from a SMF forum database Codificació: Com buscar dades de perfils d'usuari amb SSI.php d'una base de dades de fòrum SMF












































