Get Last Modification Date from the header list

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mich dobelman

    Get Last Modification Date from the header list

    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.p hp" );

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

    if( ! $request -error ){
    while( list( $key, $val ) = each( $request -headers ) ) {
    echo $key.": ".$val."<br>\n" ;
    }
    }
    ?>


  • R. Rajesh Jeba Anbiah

    #2
    Re: Get Last Modification Date from the header list

    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/

    Comment

    Working...