If you find the error Cannot modify header information – headers already sent : Please check :

>> Make sure there is no white space outside of the php start and end tags.

>> Make sure there are no extra characters outside of the php start and end tags.

>> Also you may try changing output_buffering=on in php.ini

Thats All !!