$url = "http://stackoverflow.com/robots.txt"; $contents = file_get_contents($url); echo strtolower($contents), '<br>'; echo substr_count($contents, 'user-agent'); This code is trying to get the number of directives "user-agent", gives me - 0
What not so tell me