Have a screen shot taken of a certain page in a specific time interval and stored on same server

StackOverflow https://stackoverflow.com/questions/20590543

  •  01-09-2022
  •  | 
  •  

Pregunta

I currently have a php script which displays real time information and is updated whenever the page is refreshed ( it is automatically refreshed every 30 minutes ). Is there a php script or something server side which will have it screen shot the updated page and store it on the server?

I am using the latest version of apache on a Linux Centos Server.

Regards,

John

¿Fue útil?

Solución

Selenium has PHP bindings and can take a screenshot. It's very powerful but also requires some setup effort. Selenium uses an actual web browser to do its work, so the screenshot will accurately reflect HTML5 and other types of dynamic content.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top