Skip to content Skip to sidebar Skip to footer

Php Curl Get Html And Js Render

php curl only get the source code of a html page without executing the js script. I need for my website to get the source code with all the javascript already executed. I use ajax

Solution 1:

No you can't. Not from PHP directly.

If you have control over the server you could install phantomjs and have it execute the code since it basically provides you with a headless browser that can do what you want.


Post a Comment for "Php Curl Get Html And Js Render"