String comparison; finding 'like' characters
<p>I am doing a quick duplicate check on a form. When comparing two strings, I was trying something like this:</p>

<pre><code>if (stripos($_SESSION['website'], $f['website']))
</code></pre>

<p>I am getting this error:</p>

<pre><code>Fatal error: Call to undefined function: stripos() in...
</code></pre>

<p>I do not want it to be an exact match, basically if the <code>$_SESSION['website']</code> is www.google.com, I'd want <code>stripos</code> to return <code>true</code> if <code>$f['website]</code> is www.goog.com</p>

<p>Am I doing something wrong, or is there a better way to do this?</p>

<p>edit: I was doing some testing, and noticed if my <code>$_SESSION['website']</code> variable contains <code>www</code> and <code>.com</code>. As does my <code>$f['website]</code> variable. shouldn't <code>strpos</code> return that as true?</p>
