PHP(6)
-
[PHP] 캔버스 이미지 업로드
// 웹캠 사용하기 참고글 https://ddochi-dev.tistory.com/entry/HTML-%EC%9B%B9%EC%BA%A0-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0 // script // PHP $file = $_POST['file']; list($type, $file) = explode(';',$file); list(,$file) = explode(',',$file); $file = base64_decode($file); $filename = "파일명.jpg"; $savedir = "파일경로"; file_put_contents("{$savedir}{$filename}",$file);
2020.06.23 -
[PHP] flush를 이용한 디버그 메세지 출력
'; ob_flush(); flush();}for($i=1;$i
2020.04.03 -
[PHP] 메모리 무제한 설정 2020.04.03
-
[PHP] base64 데이터를 이미지로 저장하기 2020.03.20
-
[PHP] 유튜브 API
'snippet', 'channelId' => $channelId, 'maxResults' => '20', 'order' => 'date', 'type' => 'video', 'key' => $apiKey);$results = ytData($url1,$data);foreach($results as $val) { $data2 = array(); $data2 = array( 'part' => 'snippet', 'id' => $val['id']['videoId'], 'key' => $apiKey ); $results2 = ytData($url2,$data2);// $results2[0]['snippet']['title'] 제목// $results2[0]['snippet']['publishedAt'] 날..
2020.03.20 -
[PHP] 공휴일 API 2020.03.20