Take screen shot of the webpage for a given url

Discussion in 'PHP' started by sunil_23413, Jun 25, 2009.

  1. #1
    I have a form which has two fields
    1. Email
    2. Website url
    When the user submits this form an email goes to the email address filled above which contains the screen shot of the webpage whose url is filled above.
    I need an image screen shot so that I can send it in an email.
    Is there a php script which can take screen shot of the webpage for a given url?

    I used file_get_contents() function but it does not display the webpage properly. Some images and links are not shown.
     
    sunil_23413, Jun 25, 2009 IP
  2. ammoun

    ammoun Active Member

    Messages:
    983
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #2
    file_get_contents() will read the file as a string, you need another script to convert Html to image. I know one in Perl.
     
    ammoun, Jun 25, 2009 IP
  3. Wrighty

    Wrighty Peon

    Messages:
    199
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I too have been searching for this, however haven't found anything in PHP that can do it - supposedly there's an in built PHP function that will run - but only under a windows system, not Linux like mine.

    :(
     
    Wrighty, Jun 25, 2009 IP