Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 안드로이드
- cors
- node
- 도메인
- S3
- hybrid
- 감사일기
- beanstalk
- ios
- https
- fanzeel
- 웹뷰
- JavaScript
- angular
- Android
- react
- 알려줌
- swift
- Route53
- angular4
- 네이티브
- TypeScript
- Elastic Beanstalk
- AWS
- node.js
- php
- nextjs
- 카카오톡
- NeXT
- 페이스북
Archives
- Today
- Total
목록2018/12/14 (1)
쪼렙 as! 풀스택
18. 12. 13. PHP - CURL로 파일 저장하기, 압축풀기, 파일을 Text 로 읽기, 텍스트파일을 그대로 렌더링해주기.
CURL 로 외부에 있는 파일을 내부에 저장하기. $src = "https://aaa.com/aaa.zip"; $targetFile = "/aaa.zip"; $fp = fopen($targetFile, "w"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $src); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec($ch); fclose($fp); curl_close($ch); 압축 풀기. $ $file = "/ZIP_FILE.zip" $zip = new ZipArchive; if..
개발 일지/Web & Server
2018. 12. 14. 11:09