php http header

Discussion in 'PHP' started by sunnyverma1984, Dec 26, 2007.

  1. #1
    how to read http header response using php link server type, server date,x-powered-by,Content-Type etc and put all thing into array
     
    sunnyverma1984, Dec 26, 2007 IP
  2. coches

    coches Peon

    Messages:
    41
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php

    echo '<pre>'.print_r(get_headers('www.domain.com', 1)).'</pre>';

    ?>
     
    coches, Dec 26, 2007 IP
    sunnyverma1984 likes this.
  3. sunnyverma1984

    sunnyverma1984 Well-Known Member

    Messages:
    342
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #3
    thanx coches +rep added
     
    sunnyverma1984, Dec 26, 2007 IP