Retrieve data from twitter api streming in PHP


I try to retrieve data from the Twitter API in PHP, I was able to make the connection but I have a problem with the request, he always knew my local site displays this message
[message] => Sorry, that page does not exist
[code] => 34
my query is



The endpoint you are referring is not the Twitter Streaming API but actually the REST API.