Alt-PHP-Faq

Vitamin Supplements| Cortavet| Cortaflex| Cortaflex| regtool| Esup| Zygor Guides| Equine Supplements| Manuka Honey| Fat Loss 4 Idiots| Zygor Guides| Download


Question :

Why do i get the error "Cannot add header information" ?

Answer :
From the manual page:

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.

If you need to use header to redirect a user after you sent output, standard html has a meta refresh tag, read more about meta tags and html here.

Categories Return to Main PHP Faq

General


 

Questions

General
How do I run a php script from the command line?
What does PHP stand for?
Can I connect to a Microsoft Access database without a DSN?
How can I set the include path and other settings that are fixed in php.ini without having access to php.ini?
Can I get the screen resolution and like with php?
Whats the difference between include() and require()?
How can I convert a Access database to a MySQL database?
I am totally new to PHP / MySQL / Programming in General. Where is a good place to start learning?
How do I get the visitors browser information?
What is PEAR?
How do I send mails with PHP?
Are there any good PHP development environments / editors for Windows?
Can I use php with cron on unix systems?
Can php and flash work together?
How can I develop my own PHP extension ?
How do I find out how a user came to my page?
Using Apache can I get php to parse files not ending in .php?
How do I get started to use php?
Why doesn't rand give random numbers?
Have you read this article, "Student Suspended Over Suspected Use of PHP"?
How can I send large amounts of emails with php?
Are there any good PHP development environments / editors for Linux?
Why do I get "Warning: open(/tmp\sess_03416739e8d8712a1489aa6bb6bdf19d, O_RDWR)" failed ?
Where can I get a php mode for emacs?
What does it mean when there is a & infront of a variable?
How do I turn newlines / returns into html breaks (<br>)?
I get an error 'PDF_set_info' must not be called in 'object' scope in script.php on line xxx
Where can I get a copy of PHP?
I am using PHP with SQL - can I ask a question in alt.php?
How do I find out what mode to use when creating dirs with mkdir
Who do I contact to add to this faq?
How can I redirect all http (non-secure port 80) requests to https (Secure port 443)
Since moving hosts my file permissions are wrong, how can I fix this?
 

Return to the main FAQ list




   
Design & Layout Copyright © 2000- 2008 PHP MySQL Web Hosting Comments to Webmaster
Hosted by PHP 4 Hosting - PHP and MySQL Webhosting and Domain Names