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 |
Tags
- JSON
- 전략
- post
- variables
- Laravel
- 무료다운로드쿠폰
- file-upload
- Session
- date
- string
- 웹하드추천
- Arrays
- function
- Regex
- Linux
- HTML
- Forms
- php
- OOP
- JavaScript
- Ajax
- composer-php
- 경영
- jquery
- UTF-8
- curl
- MySQL
- 웹하드순위
- Apache
Archives
- Today
- Total
목록slim (1)
개발! 딱 깔끔하고 센스있게!
slim php 프레임 그림 업로드 put 데이터베이스
저는 slim php 프레임의 초보자입니다. 사진을 올리고 싶습니다. POST 를 통해 데이터베이스에 파일을 올려 주시면 실례 코드도 있습니다. 대답 이것은 경로기: $app->post('/', 'uploadFile'); 다음 함수를 가리키기: function uploadFile () { if (!isset($_FILES['uploads'])) { echo "No files uploaded!!"; return; } $imgs = array(); $files = $_FILES['uploads']; $cnt = count($files['name']); for($i = 0 ; $i < $cnt ; $i++) { if ($files['error'][$i] === 0) { $name = uniqid('img-'...
개발 스크랩 메모/PHP
2020. 12. 24. 02:37