There are mainly 3 type of error in php.
Generally Rest of the program execute successfully even if a warning error show.I am going to give a example of warning error which i faced yesterday.
Warning: Cannot modify header information – headers already sent
Below is the code when i redirect a page by using header function.
To avoid such type of problem what should we do?
1.Do not use echo /print statement before this header function.
2.Do not use white space before