extend/user.config 이 파일에 아래 함수를 만들었는데.. echo $MBRID; 값이 넘어 오지 않는데..
이유를 알수 있을가요?
function encryptRemote($data){
$data = urlencode($data);
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,"http://xxx.xx.com?DATA=".$data);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Your application name');
$query = curl_exec($curl_handle);
curl_close($curl_handle);
return $query;
}
$MBRID = encryptRemote($member[mb_name]);
echo $MBRID;