Здравствуйте.
дравствуйте. Поставила на денвере osCommerce. При нажатии добавить в корзину выдает вот это:
Deprecated: Function ereg() is deprecated in Z:\home\sborka\www\includes\functions\general.php on line 1094
Deprecated: Function ereg() is deprecated in Z:\home\sborka\www\includes\functions\general.php on line 1094
Deprecated: Function ereg() is deprecated in Z:\home\sborka\www\includes\functions\general.php on line 1094
Deprecated: Function ereg() is deprecated in Z:\home\sborka\www\includes\functions\general.php on line 1094
Deprecated: Function ereg() is deprecated in Z:\home\sborka\www\includes\functions\general.php on line 1094
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\sborka\www\includes\functions\general.php:1094) in Z:\home\sborka\www\includes\functions\general.php on line 33
Строка выглядит так:
function tep_create_random_value($length, $type = 'mixed') {
if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) return false;
$rand_value = '';
while (strlen($rand_value) < $length) {
if ($type == 'digits') {
$char = tep_rand(0,9);
} else {
$char = chr(tep_rand(0,255));
}
if ($type == 'mixed') {
if (eregi('^[a-z0-9]$', $char)) $rand_value .= $char;
} elseif ($type == 'chars') {
if (eregi('^[a-z]$', $char)) $rand_value .= $char;
} elseif ($type == 'digits') {
if (ereg('^[0-9]$', $char)) $rand_value .= $char;
}
}
return $rand_value;
}
Извините, если повторюсь, но ответа на форуме не нашла.