Connecting Tech Pros Worldwide Forums | Help | Site Map

Convert HTTP Header Last Modification Date to Integer

Shuan
Guest
 
Posts: n/a
#1: Aug 15 '06
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";
}
}
?>






Chung Leong
Guest
 
Posts: n/a
#2: Aug 15 '06

re: Convert HTTP Header Last Modification Date to Integer



Shuan wrote:
Quote:
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.

Closed Thread