Hello friends. I have this code

<?php ini_set('zlib.output_compression', 'On'); ini_set('zlib.output_compression_level', '1'); include('dbcon.inc.php'); mysql_connect(DB_HOST,DB_LOGIN,DB_PASS) or die (mysql_error()); mysql_select_db(DB_NAME) or die (mysql_error()); $sql="SELECT msg,date,titlenews,fototn,foton FROM msgs ORDER BY id DESC"; $users = mysql_query($sql) or die(mysql_error()); mysql_close(); /* $num=mt_rand(2000,10000); header('Last-Modified: '.gmdate('D, d MYH:i:s \G\M\T', time()-$num)); */ ?> 

Last Modified Commented As You Noticed. Question: When I add the new information to the page, I uncomment this code I will update the page and then comment it out again. The headings will leave, and thus I will not deceive the search engine. The normal way?

  • one
    There is a lack of understanding of what HTTP-headers are :) - user6550
  • 2
    I really want to send you a wise guy! Yes, I misunderstand what I’m misunderstanding, I try to find out on the forums! And here such rams like you can’t answer anything normally but just leave smug posts. - Sasha

1 answer 1

And what is it all for? Do what you want, because it is not clear what it is for ...

Why not leave the header uncommented, just make a request to the last added entry and enter the date from the returned answer. In my opinion this will be the best solution.