How can I set the value of a PHP variable to be the HTML OUTPUT of another page into a PHP variable?
For example I can get TWEETS directly as a JSON object from Twitter by going to a user's URL. But rater than use AJAX, I would like to just include the data directly into my page as it's being built by my PHP script. This would be a piece of cake if I could get the output of said URL directly into a PHP variable,in other words:
$JSONobj= whatever URL returns;
...I there a way to do this or something like it directly in PHP?
All help greatly appreciated!