Jump to content

is this possible with solely PHP


monkeytooth

Recommended Posts

I'm curious. Is it possible with lets say the GD lib and cURL to come up with a concept that can grab a screenshot of a particular site? I would like to take screen shots of sites in my "network" and display them / catalog them but I am wondering if this is something thats even possible, and if its possible would it be possible on a production server thats provided by someone like lets say hostgator, or would I need a dedicated box to pull something off like this? I guess what I am looking to figure out ultimately which technologies revolving around PHP would I need to use in order to get a screenshot of a page like I would like to get.

 

 

Link to comment
Share on other sites

Since the "page" is just HTML code, there is no "screenshot" you could take. Could you do something with PHP? Absolutely! But, you would have to build your own HTML parsing engine in PHP to convert the HTML code into an image file. Basically you would have to build a browser within PHP. That would be a herculean task for what you are wanting.

 

There are 3rd party solutions though that you could use to generate "screenshots" of web pages using PHP. Though, any good ones are going to cost you. Also, it will likely require you to install software on the web server (unless the company provides a web based service). Here is one possibility

 

http://www.acasystems.com/en/web-thumb-activex/ $130 for a personal developer license.

Link to comment
Share on other sites

Yea, I figured there would be something a bit easier about it lol. I'll stick with my regular means of screen capping for now I think, as Im not about to build a browser within a browser based on PHP to just take a snap of a couple sites now and again. I figured if it was a task I could do in a day or 2 maybe I'd consider doing it. But this sounds like a much larger scale concept than what I want to sink my teeth into right now so, yea.. lol, thanks for the input though at least it gives me an idea should I change my mind about such a larger task.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.