1//Making User agent just like google which helps the browser to say which site visit
2$options = array('http'=>array('method'=>"GET",'headers'=>"User-Agent: Nir003"));
3$context = stream_context_create($options);
4
5
6// allows you to parse html pages
7$doc = new DOMDocument();
8
9
10// load full page in $doc variable