Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

update to php ver 5


zinor

Recommended Posts

Posted

hello everybody , hello everybody ...

i updated my codes due to i upgraded php to version 5 so changed lots of them now just a tiny problem .

in this code "if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $datetime)) {" how to update this code segment ???

 

the error in webpage shown as follow

"Deprecated: Function ereg() is deprecated in /includes/functions/english.php on line 19"

 

could anyone help me ?

 

thanks

Posted

How to update "ereg" functions has been discussed many times. For this particular one, it's

if (preg_match ("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/", $date, $datetime)) {

Posted

How to update "ereg" functions has been discussed many times. For this particular one, it's

if (preg_match ("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/", $date, $datetime)) {

 

just can say thank you so much MR.Phill

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...