sms연결 오류

sms연결 오류

QA

sms연결 오류

답변 1

본문

아이코드 사용중인데 사이트 이전중이라 실제 운영중인 아이코드아이디 패스워드 들고와서 쓸려고하는데 에러가 뜨네요

 

// 아이코드 사용자정보
function get_icode_userinfo($id, $pass)
{
    $res = get_sock('http://www.icodekorea.com/res/userinfo.php?userid='.$id.'&userpw='.$pass, 2);
    $res = explode(';', $res);
    $userinfo = array(
        'code'      => $res[0], // 결과코드
        'coin'      => $res[1], // 고객 잔액 (충전제만 해당)
        'gpay'      => $res[2], // 고객의 건수 별 차감액 표시 (충전제만 해당)
        'payment'   => $res[3]  // 요금제 표시, A:충전제, C:정액제
    );

    return $userinfo;
}

 

위링크로 했을때 값은들고오는데

ex 

http://www.icodekorea.com/res/userinfo.php?userid=test&userpw=1234

 

했을때 값은 들고오는데 

위함수에서 리턴값이 

Array ( [code] =>

Bad Request

Your browser sent a request that this server could not understand.

[coin] => [gpay] => [payment] => ) 

이렇게 뜨네요...원인이 몰까요?ㅠ

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 568
© SIRSOFT
현재 페이지 제일 처음으로