0
누가이 오류로 나를 도울 수 있습니까? 내 oscommerce 웹 사이트에서 sagepay 모듈을 사용하고 있는데 다음 오류가 있습니다. 경고 : sage_pay_form.php에서 0으로 나누십시오 (라인 406). 여기 코드가 있습니다.경고 : oscommerce에서 0으로 나누기
function simpleXor($InString, $Key) {
$KeyList = array();
$output = "";
for ($i=0; $i<strlen($Key); $i++) {
$KeyList[$i] = ord(substr($Key, $i, 1));
}
for ($i=0; $i<strlen($InString); $i++) {
$output .= chr(ord(substr($InString, $i, 1))^($KeyList[$i % strlen($Key)]));
}
뭐가 잘못 되었나요? 그 퍼센트 기호는 나머지 연산자 인 경우
$output .= chr(ord(substr($InString, $i, 1))^($KeyList[$i % strlen($Key)]));
나는 그것을 얻지 않는다. pls 정교한 수 있습니까? 감사. –
감사합니다. :) –