468,272 Members | 2,136 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

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 2548

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
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.