Some sort of configuration management system.

Discussion in 'PHP' started by gigamike, Oct 24, 2007.

  1. #1
    Guys,

    any idea, do you know if there is a server script that will download an entire web site and then make an IMAGE of that web site in the form of a JPG.

    Some sort of configuration management system.

    Thanks,

    Mike
     
    gigamike, Oct 24, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Yes.
    
    <?php
    $browser = new COM("InternetExplorer.Application");
    $handle = $browser->HWND;
    $browser->Visible = true;
    $browser->Navigate("http://www.libgd.org");
    
    /* Still working? */
    while ($browser->Busy) {
        com_message_pump(4000);
    }
    $im = imagegrabwindow($handle, 0);
    $browser->Quit();
    imagejpeg($im, "iesnap.jpeg");
    ?> 
    
    PHP:
    www.php.net/imagegrabwindow


    BUT:

    It only works on Windows, and you need a few other things to be configured as well.
     
    nico_swd, Oct 24, 2007 IP
  3. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Hi nico_swd,

    Thanks for the quick help. By the way, have you saw or anyone here a site that downloads an entire web site and then make an IMAGE of that web site in the form of a JPG. i mean that is now existing.

    Thanks,

    Mike
     
    gigamike, Oct 25, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Yes, there are quite a lot actually. Google for "Website screenshots".
     
    nico_swd, Oct 25, 2007 IP
  5. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Guys,

    any idea on how i can start, something like this one webshotspro.com, the thumbs came from screenshot.

    Thanks,

    Mike
     
    gigamike, Oct 30, 2007 IP
  6. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Guys

    :( i really need your help badly, im already stack. My server is windows 2003 Server then i have apach 2 and php5 installed. BUt unfortunately my script doesnt work

    <?php
    $browser = new COM("InternetExplorer.Application");
    $handle = $browser->HWND;
    $browser->Visible = true;
    $browser->Navigate("http://www.libgd.org");

    /* Still working? */
    while ($browser->Busy) {
    com_message_pump(4000);
    }
    $im = imagegrabwindow($handle, 0);
    $browser->Quit();
    imagepng($im, "iesnap.png");
    ?>

    I think http://www.webshotspro.com/ and http://www.thumbalizr.com/ is calling an executable file like concept of ffmpeg

    Please guys, im begging for help :(

    Thanks,

    Mike
     
    gigamike, Nov 6, 2007 IP