프로그래밍/PHP 썸네일형 리스트형 코드이그나이터 파일 업로드 $config['upload_path'] = './uploads/order/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '0'; // 서버 설정에 따라 적용 $config['max_width'] = '0'; // $config['max_height'] = '0'; // $this->load->library('upload',$config); // 이미지 1 if ( ! $this->upload->do_upload('company_license_img'))//company_license_img 업로드 파일의 name 속성{ $error = array('error' => $this->upload->display_errors()); //.. 더보기 php 마지막 문자열 컴마 삭제하기 예) $mem_id = "member_id,";$mem_id = substr($mem_id, 0, -1); // 문자열 마지막에 콤마 제거 더보기 php curl 적용 및 ip변경하기 $apiKey = "asdsadsdasd"; $url = 'https://csp.ecom.com/rest/017/'.$apiKey; //호출 URL 지정 $post_v["NUM"] = "01011112222"; // $post_v["ey"] = "skfhk"; $curl = curl_init (); curl_setopt ($curl, CURLOPT_URL, $url); curl_setopt ($curl, CURLOPT_POST, 1); curl_setopt ($curl, CURLOPT_POSTFIELDS, $post_v); curl_setopt($curls, CURLOPT_PROXY, "127.0.0.1:443"); // 아이피 등록. url은 같지만 가 다른경우 예) 테스트서버, 운영서버 등 curl_.. 더보기 이전 1 2 3 4 5 6 7 ··· 12 다음