PHP CURL 사용법

WEB 관련 2022. 6. 29. 19:58

<?
// GET 방식 함수
function get($url, $params=array()) { 
    $url = $url.'?'.http_build_query($params, '', '&');
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $response = curl_exec($ch);
    curl_close($ch);
    return $response;
}  
// get함수 호출
get('url', array('param1'=>'value1', 'param2'=>'value2'));
 
 
// POST 방식 함수
function post($url, $fields){
    $post_field_string = http_build_query($fields, '', '&');
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_field_string);
    curl_setopt($ch, CURLOPT_POST, true);
    $response = curl_exec($ch);
    curl_close ($ch);
    return $response;
}  
// post함수 호출
post('url', array('field1'=>'value1', 'field2'=>'value2'));
?>

블로그 이미지

AutoLoop

컴퓨터 하드웨어 소프트웨어 정보 각종 유틸리티 해외정보 가상화폐 코인 주식 차트 마케팅 컨설팅 자료모음 및 설명

,

확장자 없는 이미지를 사용 하는경우
IIS에서 설정을 안해주면 이미지가 보이질 않습니다.
MIME 형식 추가에서 확장명에 .*  대신 . 만 입력하는 것으로 해결이 됩니다.


'WEB 관련' 카테고리의 다른 글

PHP 함수 리스트 링크  (0) 2022.06.30
PHP CURL 사용법  (0) 2022.06.29
티스토리 글쓰기에서 역슬래시 사용  (0) 2020.10.05
WEB GL 관련 링크  (0) 2020.09.28
Three JS 데이터 로딩 속도  (0) 2020.09.07
블로그 이미지

AutoLoop

컴퓨터 하드웨어 소프트웨어 정보 각종 유틸리티 해외정보 가상화폐 코인 주식 차트 마케팅 컨설팅 자료모음 및 설명

,

한글 ㄱ자 타이핑후 한자키에서 특수문자입력

 

'WEB 관련' 카테고리의 다른 글

PHP 함수 리스트 링크  (0) 2022.06.30
PHP CURL 사용법  (0) 2022.06.29
iis 확장자 없는 이미지 파일 안보이는 문제  (0) 2022.06.29
WEB GL 관련 링크  (0) 2020.09.28
Three JS 데이터 로딩 속도  (0) 2020.09.07
블로그 이미지

AutoLoop

컴퓨터 하드웨어 소프트웨어 정보 각종 유틸리티 해외정보 가상화폐 코인 주식 차트 마케팅 컨설팅 자료모음 및 설명

,

WEB GL 관련 링크

WEB 관련 2020. 9. 28. 09:49

https://threejs.org/

 

three.js – JavaScript 3D library

 

threejs.org

https://www.babylonjs.com/

 

Babylon.js: Powerful, Beautiful, Simple, Open - Web-Based 3D At Its Best

Babylon.js is one of the world's leading WebGL-based graphics engines. From a new visual scene inspector, best-in-class physically-based rendering, countless performance optimizations, and much more, Babylon.js brings powerful, beautiful, simple, and open

www.babylonjs.com

http://www.glge.org/

 

GLGE WebGL Library/Framework

February 14th, 2012 Originally soft shadows in GLGE where implemented using PCF (Percentage Closer Filter) but the results were generally noisy and/or slow. As a result I thought I’d try implementing variance shadow maps in webgl. This technique is commo

www.glge.org

http://www.senchalabs.org/philogl/

 

PhiloGL: A WebGL Framework for Data Visualization, Creative Coding and Game Development

PhiloGL is a WebGL Framework for Data Visualization, Creative Coding and Game Development. Download Current Release: 1.5.2

www.senchalabs.org

http://scenejs.org/

 

SceneJS V4.2.0

Quick Start First, include the SceneJS library in the tag of your web page: Then build a scene. We'll make a spinning blue teapot: var scene = SceneJS.createScene({ nodes:[ { type:"material", color: { r: 0.3, g: 0.3, b: 1.0 }, nodes:[ { type: "rotat

scenejs.org

https://playcanvas.com/

 

PlayCanvas - The Web-First Game Engine

Collaboratively build stunning HTML5 visualizations and games

playcanvas.com

www.awwwards.com/30-experimental-webgl-websites.html

 

30 Experimental WebGL Websites which will make you want to sit in a dark room and work more

WebGL is no longer a technology exclusive to big projects containing 3D scenes, storytelling-based narratives and complicated visual effects, it’s been with us...

www.awwwards.com

 

블로그 이미지

AutoLoop

컴퓨터 하드웨어 소프트웨어 정보 각종 유틸리티 해외정보 가상화폐 코인 주식 차트 마케팅 컨설팅 자료모음 및 설명

,

로딩속도가 Localhost 에서 정말 빨라서 놀람.

실서버에 적용하면 로딩속도가 애니메이션 데이터가 있는 것은

평균 10-15초 차이가 나는것 같네요 물론 서버성능이나 인터넷속도에 차이가 있겠지만!

 

로딩속도 감안해서 적절한 곳에 사용하면 될듯.

5G 속도가 일반화 되면 빛을 볼수 있을듯.

3D는 사용자 시선을 조금더 잠시 머물게  할수있을거 같으니!

 

 

 

 

 

 

'WEB 관련' 카테고리의 다른 글

PHP 함수 리스트 링크  (0) 2022.06.30
PHP CURL 사용법  (0) 2022.06.29
iis 확장자 없는 이미지 파일 안보이는 문제  (0) 2022.06.29
티스토리 글쓰기에서 역슬래시 사용  (0) 2020.10.05
WEB GL 관련 링크  (0) 2020.09.28
블로그 이미지

AutoLoop

컴퓨터 하드웨어 소프트웨어 정보 각종 유틸리티 해외정보 가상화폐 코인 주식 차트 마케팅 컨설팅 자료모음 및 설명

,