You are here: Re: Last-modified? « PHP Programming Language « IT news, forums, messages
Re: Last-modified?

Posted by Curtis on 01/30/07 06:26

Rarpy wrote:
> Hi all,
>
> I tried putting this at the beginning of a PHP file:
>
> <?php
> echo "Last-modified: " . date( "F d Y.", getlastmod() );
> print "";
> ?>
>
> The goal was to ensure that the browser would realize
> that the page is newly produced HTML. However its not
> working. The browser shows above the page the expression
> Last-modified: ...
>
> Can anyone explain how to properly do this?
>
> Thanks.
>

If you're actually trying to send a header, you need to use the
header() function, not echo it out. Make sure you send the headers
before any output is sent.

See: http://php.net/header

--
Curtis

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация