Hi all,

Am using v3.2.0b4-072201 [mandrake 8.2] along with php v4.1.2, apache 
1.3.23 and am having a problem with the 'LASTMODIFIED' varible. 

I am trying to get my PHP files to have a proper last modified date. Most 
of the PHP files reference readfile() which points to another URL. Eg:

http://www.seweb.uci.edu/faculty/meeker/

The contents of 'index.uci' [.uci is mapped to be a php suffix] contain 
a line which looks something like:

readfile("http://www.seweb.uci.edu/some/dir/another/dir/file.uci?arg1=1&arg2=8&arg3=9";);

Basicly, this reads the URL into the shortened URL [i use readfile() so 
that URLs are short and sweet]. 

In the long URL, the file named file.uci has the following as the first 
line:

<?php
header("Last-Modified: " . $meta_date);
?>

I've also added a META date in the HEAD for good measure:

<META name="date" content="<?php echo "$meta_date"; ?>">

FWIW, $meta_date is a PHP varible that is called from the database. It's 
the day the page's content was last updated [all content in these pages is 
stored in a database, including the date the page's content was last 
updated]. I've made sure that $meta_date is formatted according to RFC 
1123 and RFC 1945, as follows:

$udate = $qrow["UNIX_TIMESTAMP(datetime)"];
$meta_date = gmdate('D, d M Y H:i:s \G\M\T',"$udate");

When I run htdig -vvv, it appears that the correct date is used:

344:337:4:http://www.seweb.uci.edu/faculty/meeker/: Making HTTP request on
http://www.seweb.uci.edu/faculty/meeker/
Request time: 0 secs

time: Sat, 19 Oct 2002 21:10:54 GMT

title: CLS Faculty: Professor and Associate Dean Meeker

However, when I place a search query, the last modified date still shows 
today's date, 11/20/2002, as the last modified. I have confirmed that my 
htdig.conf file contains, "use_doc_date: true". What else am I missing? 

Any enlightenment into this matter would be most appreciated.

/vjl/

-- 
Vince LaMonica               UC Irvine,  School  of  Social Ecology
 W3 Developer       <*>      116 Social Ecology I, Irvine, CA 92697
 [EMAIL PROTECTED]                  http://www.seweb.uci.edu/techsupport

       No matter what happens, somebody will find a way to 
                    take it too seriously.







-------------------------------------------------------
This sf.net email is sponsored by: 
Battle your brains against the best in the Thawte Crypto 
Challenge. Be the first to crack the code - register now: 
http://www.gothawte.com/rd521.html
_______________________________________________
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