[이윰] 이윰빌더 외부이미지 로컬 저장 https 보안서버도 적용하기
페이지 정보
루루아빠
3,148
2017.11.22 14:14:31
짧은주소
-
https://yadolee.com/tip/517 주소복사
본문
이윰빌더 외부이미지 로컬 저장 https 보안서버도 적용하기
그누보드5/eyoom/classes/eyoom.class.php를 열어 "외부 이미지 로컬에 저장하기"를 검색한다.
수정 전
수정 전
public function save_url_image($url, $local_image) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
수정 후
public function save_url_image($url, $local_image) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); //https도 적용
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
추천인
레벨 101
경험치 1,519,440
Progress Bar 14.66%
- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS
BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑
루루아빠랍니다~~
최신댓글이 없습니다.


댓글
첫 번째 댓글을 남겨 주세요