Hello to all,
I had a browser that does not update the content of a website so I asked for help on a forum and someone suggested to use this code:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
When I work on XAMPP I have not problem but when i use a real hosting I get a file named "error_log" that fills the Following lines of code:
[15-Mar-2016 02:21:25 Europe/Berlin] PHP Warning: Cannot modify header information - headers already sent by (output started at /…/index.php:1) in /…/index.php on line 3
[15-Mar-2016 02:21:25 Europe/Berlin] PHP Warning: Cannot modify header information - headers already sent by (output started at /…/index.php:1) in /…/index.php on line 4
[15-Mar-2016 02:21:25 Europe/Berlin] PHP Warning: Cannot modify header information - headers already sent by (output started at /…/index.php:1) in /…/index.php on line 5
I wish the browser That did not keep the memory of the index.php page and That my server does not write error_log file. How can I do? Is there a solution?
Thank you