Deprecated: Function eregi()
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5700806/function-eregi-is-deprecated">Function eregi() is deprecated</a>  </p>
</blockquote>



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

<p>Deprecated: Function eregi() is deprecated in /home/u578804202/public_html/includes/functions.php on line 4 </p>

<p>Here is my code:</p>

<pre><code>if(eregi($file,$_SERVER['REQUEST_URI'])) {
    die("Sorry but you cannot access this file directly for security reasons.");
}
</code></pre>
