471,046 Members | 1,166 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,046 software developers and data experts.

Convert HTTP Header Last Modification Date to Integer

snoopy class can retrieve the specific page's lat modification date in
String
but is there any way to get into the integer or long?

<?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 15 '06 #1
1 2617

Shuan wrote:
snoopy class can retrieve the specific page's lat modification date in
String
but is there any way to get into the integer or long?

<?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";
}
}
?>
strtotime() should work.

Aug 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Dennis Marks | last post: by
3 posts views Thread by Hanjo Grüßner | last post: by
4 posts views Thread by IdleBrain | last post: by
7 posts views Thread by elliotng.ee | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.