2 errors on my code, Division by zero & Function eregi() is deprecated
<p>Im getting 2 errors on my code.</p>

<p>First:</p>

<pre><code>[18-Sep-2012 11:54:57] PHP Deprecated:  Function eregi() is deprecated
</code></pre>

<p>And this line is:</p>

<pre><code>if ($vidSrc !== false &amp;&amp; eregi('eow-title',$vidSrc))
</code></pre>

<p>Second</p>

<pre><code>PHP Warning:  Division by zero

$percent = round($downloaded/$downloadSize, 2) * 100;
</code></pre>

<p>When I tested on localhost, it worked fine, after moving to my host, its giving this.
PHP Version: 5.3+</p>
