Trouble with old PHP code with latest PHP 5.4.11
<p>I used a PHP script over 9 years ago.</p>

<p>After updating PHP version to latest stable one (PHP 5.4.1.1), my script no longer works.</p>

<p>I found the problem area, Can anyone help me to convert this old PHP code to latest PHP 5.4.11.</p>

<pre><code>if ((strlen($user_name)&lt;$nick_min_length) or (strlen($user_name)&gt;$nick_max_length)) {
    $error_text ="$w_incorrect_nick&lt;br&gt;&lt;a href=\"index.php\"&gt;$w_try_again&lt;/a&gt;";
    include($file_path."designes/".$design."/error_page.php");
    exit;
}
if (ereg("[^".$nick_available_chars."]", $user_name)) {
    $error_text ="$w_incorrect_nick&lt;br&gt;&lt;a href=\"index.php\"&gt;$w_try_again&lt;/a&gt;";
    include($file_path."designes/".$design."/error_page.php");
    exit;
}
if (strtolower($user_name) == strtolower(strip_tags($w_rob_name))) {
    $error_text ="$w_incorrect_nick&lt;br&gt;&lt;a href=\"index.php\"&gt;$w_try_again&lt;/a&gt;";
    include($file_path."designes/".$design."/error_page.php");
    exit;
}
</code></pre>
