I'm pretty much a php n00b and have been trying to google/find how to sort out my ereg depreciatation problems but I have no idea what I'm doing. I've uploaded OSC V2.2 RC2a PHP 5.3 compatible files downloaded from the contributions. I have also installed the product listing contribution to make it list the product horizontally.
http://shop.beckyliu.com/index.php?cPath=3_10&sort=2a&filter_id=4
This is the error I'm getting on that page above
Deprecated: Function ereg() is deprecated in /srv/disk3/548372/www/shop.beckyliu.com/index.php on line 195
Line 195
if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
$HTTP_GET_VARS['sort'] = $i+1 . 'a';
$listing_sql .= " order by pd.products_name";
break;
Really annoyed and worried this is going to keep happening and I'll find more errors. Thanks!