Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:19:34+00:00 2026-06-14T08:19:34+00:00

Does the PHP header function have a limit to the amount of textual or

  • 0

Does the PHP header function have a limit to the amount of textual or binary output to the browser before it refuses to redirect the browser to the provided URL?

I have noticed that I can output to the browser then do a redirect with header('Location: $url'); exit();, but it seems as though after I have output a certain amount it refuses and outputs this message?

I have never came across anything to suggest this during Zend Certification study, so I wondered if it was a undocumented feature?

Warning: Cannot modify header information – headers already sent by
(output started at /var/www/vhosts/dev/dev_crmpicco/co.php:935) in
/var/www/vhosts/dev/dev_crmpicco/includes/Rangers.inc.php on line 1701

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:19:35+00:00Added an answer on June 14, 2026 at 8:19 am

    The answer can be found in header() manual

    Remember that header() must be called before any actual output is
    sent, either by normal HTML tags, blank lines in a file, or from PHP.
    It is a very common error to read code with include, or require,
    functions, or another file access function, and have spaces or empty
    lines that are output before header() is called. The same problem
    exists when using a single PHP/HTML file.

    You can’t output any text before you set the headers. You might have some sort of output buffering set that allows you to echo anything, if you think you are able to output a certain amount of bytes before header fails.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem in IE6. I redirect http://example.com to https://example.com using php header()
So I have created this function in PHP to output text in the required
I have PHP code like below and I want to write a function which
I have header.php and footer.php files which I include in all of my pages.
I have an issue using my php code within the javascript function setTimeout. The
I have this code here: case 'resource_list': if(file_exists('content.php')){ include('../ajax/content.php'); } else { die('does not
I am trying the php header() function to set caching headers to my page.
I have a php file like this: <?php header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=\my-data.csv\); $data
Is there any way to do a PHP redirect without utilization of the header()
I have a PHP text-size select function within a Drupal site: It uses this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.