Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Protx Direct problem


awren

Recommended Posts

Posted

Hi,

 

Im trying to install protx direct and i have been following the instructions very carefully and i seem to have a problem with general.php when I add this code into it from the installation instructions given.

 

-------------------------

 

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;

}

------------------------

 

it makes my pages go blank in the admin area when ever i try to update anything.

 

Does anyone know why this could be?

 

Thanks

 

Angi

Posted

sorry I don't know what im talking about I added it to a backup general.php and it works fine.

 

I think I need some coffee :o)

Archived

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

×
×
  • Create New...