Is there a way to insert a javascript at the end of the file_get_contents() ?
I don't mean adding to the output of the function, the javascript. What I want is to put a script at the end of the website I'm getting from the file_get_contents().
Is like using a extension of chrome, which inserts a javascript at the end of the website. But in my case I want the function file_get_contents($url) to output directly everything (the website + javascript inserted).
Is there a way to use cUrl in this situation ?
Is there a way to accomplish this ?
Thanks