php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "ob_start()"

What are some alternative methods to flush() and ob_start() for controlling output in PHP scripts?

Issue: If you want to control the output in PHP scripts without using flush() and ob_start(), you can use output buffering with ob_get_clean() to capt...

What is the purpose of using ob_start() before sending headers in PHP?

When sending headers in PHP, it is important to use ob_start() before any output is sent to the browser. This function turns on output buffering, whic...

What are the drawbacks of using ob_start() in combination with header redirects?

When using ob_start() in combination with header redirects, a common issue is that headers must be sent before any output is generated. This can lead...

What is the purpose of using ob_start() at the beginning of a PHP file and how does it relate to header() function calls?

When using the header() function in PHP to send HTTP headers, it is important to call ob_start() at the beginning of the file to buffer the output. Th...

How can the ob_start() function help resolve issues with session_start() in PHP?

When using session_start() in PHP, it must be called before any output is sent to the browser. If there is any output before session_start(), it will...

Showing 36 to 40 of 467 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 93 94 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.