PHP, get web-page content words
<p>I am building a website that recommend other good website. </p>

<p>Therefore, I collected a lot websites by using crawling system.</p>

<p>Now, I am trying to distinguish whether the website has good words or not by using PHP.</p>

<pre><code>$page_content = file_get_contents($url);
$bad_word = 'damn';

if(strstr($page_content, $bad_word)):
    $result = 'YES';
else:
    $result = 'NO';
endif;
</code></pre>

<p>My code is something like this.</p>

<p>I use Codeigniter and get this message.</p>

<pre><code>An Error Was Encountered

Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.
</code></pre>

<p>It works fine some website, but it doesn't work for the other website.</p>

<p>Is there other way to retrieve content of the website?</p>
