I've recently implemented ht://dig here at work and everyone loves it.
I have the patched version of 3.1.6 running on Solaris 8 on Sun hardware.
The problem I am having is that htdig seems to be attached the same last modified date to all documents - the date being the date of the index database files.
This is frustrating as some searhes rely on time sorting which doesn't happen.
Do you have any ideas? I have been searching the web and fiddling around for days but have been unable to make any headway!
As Jim said, most likely your server is returning a last-modified date of "now" or is not returning any last modified at all.
If you have the 'curl' command, you can verify this from the command line with:
curl --head http://hostname/somepath
For example:
1: curl --head http://www.sandiego.edu/ins/
HTTP/1.1 200 OK
Date: Thu, 26 Aug 2004 19:38:36 GMT
Server: Apache/1.3.29 (Darwin) tomcat/1.0 mod_ssl/2.8.16 OpenSSL/0.9.6i PHP/4.3.4
X-Powered-By: PHP/4.3.4
Last-Modified: Fri, 14 May 2004 21:21:04 GMT
Content-Type: text/html
Here, the last modified date is May 14, 2004.
Most Apache servers will, by default, return a last-modified of "now" for .php or .shtml (or any other dynamically generated) files.
If (as in our case) your php files are not always changing and you want to keep the last-modified date of the file, you can do something like:
$pageMod = getlastmod();
$lastmodified = gmdate('D, d M Y H:i:s T', $pageMod); header("Last-Modified: $lastmodified");
You can have the server automatically add something like that to the top of every PHP page. Then you'll have to specifically change the Last-Modified header when you don't want it to have a stable Last-Modified, though.
Jerry
[EMAIL PROTECTED]
http://www.sandiego.edu/~jerry/
Serra 188B/x8773
--
"The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless)
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ ht://Dig general mailing list: <[EMAIL PROTECTED]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general