- file_get_contents: documentation ( source)
- stream_context_create: documentation ( source)
<?php
$context = stream_context_create(array('http' => array('header'=>'Connection: close\r\n')));
file_get_contents("https://api.twitter.com/1.1/search/tweets.json?q=%40twitterapi",false,$context);
/*
$ch=file_get_contents("https://api.twitter.com/1.1/search/tweets.json?q=%40twitterapi");
print_r($ch);*/
?>