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.
Take screen shot of the webpage for a given url
Moderator: General Moderators
-
sunil_23413
- Forum Newbie
- Posts: 10
- Joined: Thu Mar 12, 2009 5:43 am
Re: Take screen shot of the webpage for a given url
You have to use separate software for taking the screenshot, and call it using system(), exec() or any other related function.
Re: Take screen shot of the webpage for a given url
i did some looking around. There is a function imagegrabscreen() which may do it? I found a link..but lost it somewhere
Re: Take screen shot of the webpage for a given url
Wow...that website is cool.
I had a look at imagegrabscreen() cause I thought it sounded pretty cool, but for it to work you need to be running windows, and allow apache to access the desktop.
I did that...but I just get a blank image. Idk, maybe you can get it to work...
I had a look at imagegrabscreen() cause I thought it sounded pretty cool, but for it to work you need to be running windows, and allow apache to access the desktop.
I did that...but I just get a blank image. Idk, maybe you can get it to work...