lots of results on this forum, $temp = file_get_contents('http://example.com/weather/javascriptfile.js'); echo "document.writeln(obTemperature);";
the javascriptfile.js contains
var obTemperature = "55";
var obIconCode = "01";
but this only works if the page loads, the javascript file is already loaded into memory,