k_coreonegig, on 22 June 2011, 21:20, said:
I usually copy original code and then copy it out. That is the code you see below.
Try the following (should work, but I didn't test):
//$at_entry = eregi_replace(DB_DATABASE . '[_-]', '', $at_entry);
//$at_entry = eregi_replace('[.a-z]', '', $at_entry);
$at_entry = preg_replace(DB_DATABASE . '/[_-]/', '', $at_entry);
$at_entry = preg_replace('/[.a-z]/', '', $at_entry);
$at_last = strstr($at_last, DB_DATABASE);
//$at_last = eregi_replace(DB_DATABASE . '[_-]', '', $at_last);
//$at_last = eregi_replace('[.a-z]', '', $at_last);
$at_last = preg_replace(DB_DATABASE . '[_-]', '', $at_last);
$at_last = preg_replace('/[.a-z]/', '', $at_last);
Try the following (should work, but I didn't test):
//$at_entry = eregi_replace(DB_DATABASE . '[_-]', '', $at_entry);
//$at_entry = eregi_replace('[.a-z]', '', $at_entry);
$at_entry = preg_replace(DB_DATABASE . '/[_-]/', '', $at_entry);
$at_entry = preg_replace('/[.a-z]/', '', $at_entry);
$at_last = strstr($at_last, DB_DATABASE);
//$at_last = eregi_replace(DB_DATABASE . '[_-]', '', $at_last);
//$at_last = eregi_replace('[.a-z]', '', $at_last);
$at_last = preg_replace(DB_DATABASE . '[_-]', '', $at_last);
$at_last = preg_replace('/[.a-z]/', '', $at_last);
Actually it appears I was wrong because I am getting errors.
Instructions can be found here by Spooks:
http://forums.oscommerce.com/topic/303380-contribution-auto-backup-database/page__st__100
I tried it, I am not getting errors now.






Find content
Not Telling
