By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,054 Members | 902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,054 IT Pros & Developers. It's quick & easy.

Get Last Modification Date from the header list

P: n/a
How can i just get the last modification date from the header list.
I though I can $request->headers [Last-Modified] to get the modification
date, but
without success.
<?php
include( "Snoopy.class.php" );

$request = new Snoopy;
$request->fetch( "http://www.mysite.com" );

if( ! $request -error ){
while( list( $key, $val ) = each( $request -headers ) ) {
echo $key.": ".$val."<br>\n";
}
}
?>
Aug 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mich dobelman wrote:
How can i just get the last modification date from the header list.
I though I can $request->headers [Last-Modified] to get the modification
date, but without success.
<snip>

Check the user notest at <http://in.php.net/getlastmod>. But, not
all servers/pages may not return "Last-Modified" headers.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Aug 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.