I'm looking for a simple script in which I can do something like this
$.getScript('fetcher.php?url=' + escape('http://www.google.com') + '&callback=console.log');
The response should be one really long line that looks like this:
console.log({responseText: '<!doctype html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><script>windo...'})
It shouldn't be more than 10 lines of code and there's no way it doesn't already exist.
I'm using php in XAMPP and am just using it to build a database so I don't need any frills included (no get vs post, no data included) just file_get_contents and $_GET. Of course I would still like to encoded the url