Im using Simple HTML DOM to scrape a Javascript file like this:
$html = file_get_html('http://www.The-Javascript-File.js');
echo $html;
The problem is that I get this error in console:
Resource interpreted as Script but transferred with MIME type text/html: http://www.The-Javascript-File.js
Obviously because its a HTML parser('file_get_html')...Is there something I can do with Simple HTML DOM to get the file as a proper js file?
file_get_contets?