I have to create screen shot of web page that user is visiting in our site, through PHP. I have testing many script, working well when I pass URL of live site like google etc, But i have to create screen shoot of page that the user is visiting in our site.
Asked
Active
Viewed 232 times
1 Answers
0
This isn't possible via PHP, you'd have to trigger a system event to open a browser and take a screenshot or have service installed on a machine specifically aimed at doing this.. It's a lot more involved than coding something up in PHP.
Command line program to create website screenshots (on Linux)
-
Thanks tom... But in my case i can't use third party web services nor command line programs. I have to code by myself, how much time it takes ??? – Fazal Mar 29 '12 at 05:15
-
Creating all of these things yourself just isn't feasible, you'd need a strong knowledge in other areas such as a C based language. Or you can focus on using something like http://php.net/manual/en/function.exec.php for executing command line via PHP. I'd then recommend looking at http://stackoverflow.com/questions/125951/command-line-program-to-create-website-screenshots-on-linux in an attempt to replicate via PHP. – Tom Mar 30 '12 at 02:15