What you are suffering from is that PHP files are effectively CGI scripts that
are regenerated every time - so you will always get the current time
as the last modified time.

We had to get around this to implement a satisfactory caching solution.
What we did was use PHP's auto_prepend(?) setting and automatically
do the following at the start of every script

if ( ThisIsActuallyAStaticPage() )
{
    $time = filemtime(  $SCRIPT_FILENAME );
    $date = gmdate( "D, d M Y H:i:s ", $time ) . " GMT";

    header( "Last-Modified: $date" );
}

At 11:21 31/10/2001 +0100, Ulrich Klenk wrote:
>Greetings!
>
>I have some problems with htdig, the date of change and php-Files.
>
>After building a list with links to the .php files, htdig visit those
>sites and insert them in the database. As search result I get the
>correct sites, but the date of change is always the date when I indexed
>the pages.
>
>Is there a possibility to use the correct date of the file or the date
>given in the meta tag?
>
>THX,
>Uli
>
>_______________________________________________
>htdig-general mailing list <[EMAIL PROTECTED]>
>To unsubscribe, send a message to 
><[EMAIL PROTECTED]> with a subject of unsubscribe
>FAQ: http://htdig.sourceforge.net/FAQ.html

-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [EMAIL PROTECTED]


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to