Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to remove such type error in php file headers already sent by php?

user-image
Question ajoutée par Mohammad Irfan , Certified Magento Developer , Xcite.com
Date de publication: 2013/10/08
Muhammad Majid Saleem
par Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

This means - header has already been set before your header() statement calling. You should make sure following things:

  1. There should no WHITE SPACE at your start of the file.
  2. Nothing should be PRINT / ECHO anything before your header() statement.
  3. <head> should not be called before your header() statement.
  4. Alwasy use exit(); function after your header() statement.

More Questions Like This