I am very new to PHP so I hope I can explain my problem. I am creating a Chinese translation to my companies website. I have created a folder called Chinese and put the classes files as well as the includes file into this folder. The page displays properly, however, I am getting the following errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/upfron2/public_html/Chinese/chineseindex.php:1) in /home/upfron2/public_html/Chinese/classes/class_utils.php on line 369
Warning: Cannot modify header information - headers already sent by (output started at /home/upfron2/public_html/Chinese/chineseindex.php:1) in /home/upfron2/public_html/Chinese/classes/class_utils.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at /home/upfron2/public_html/Chinese/chineseindex.php:1) in /home/upfron2/public_html/Chinese/classes/class_utils.php on line 373
Warning: Cannot modify header information - headers already sent by (output started at /home/upfron2/public_html/Chinese/chineseindex.php:1) in /home/upfron2/public_html/Chinese/classes/class_utils.php on line 375
Here are the lines...367 - 375: Even numbers are BLANK
367 function html_headers() {
369 header( "Cache-Control: max-age=".$this->CACHE_TIME_ALL.", must-revalidate");
371 header( "Last-Modified: ".gmdate("D, d M Y H:i:s", time()-3600)." GMT");
373 header( "Expires: ".gmdate("D, d M Y H:i:s", time()+$this->CACHE_TIME_ALL)." GMT");
375 header( "Content-type:text/html");
I do not understand why I am getting these errors. I am using the same exact includes files for the Spanish and English versions. Any suggestions would be helpful.
Also, my second question. I had a developer create this website so I am still learning about the code. I understand that because this is a warning error it can be hidden on the browser. Where and what code would be needed to do this?
Thanks again for any suggestions