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
- Linux
- 웹하드순위
- jquery
- JavaScript
- 전략
- date
- 경영
- php
- Arrays
- 웹하드추천
- Session
- 무료다운로드쿠폰
- MySQL
- UTF-8
- composer-php
- string
- function
- Forms
- post
- file-upload
- curl
- variables
- JSON
- OOP
- Regex
- Laravel
- Ajax
- Apache
- HTML
Archives
- Today
- Total
개발! 딱 깔끔하고 센스있게!
이미지 높이 및 너비 PHP 얻기 본문
안녕하세요, 영상 올리는 비행 높이와 너비가 필요합니다.
이것은 내가 사용하고 있는 php 함수지만, 그것은 어떤 너비와 높이를 되돌리지 않는다.
저를 좀 도와주시겠습니까?
list($width, $height, $type, $attr) = getimagesize($_FILES["Artwork"]); $min_width = "1000"; $min_height = "1000"; if ((($_FILES["Artwork"]["type"] == "image/gif") || ($_FILES["Artwork"]["type"] == "image/jpeg") || ($_FILES["Artwork"]["type"] == "image/jpg") || ($_FILES["Artwork"]["type"] == "image/pjpeg")) && ($_FILES["Artwork"]["size"] < 20000000) && ($width > $min_width) && ($height > $min_height) && ($width == $height)) { if ($_FILES["Artwork"]["error"] > 0) { //echo "Return Code: " . $_FILES["Artwork"]["error"] . "
"; }else{ move_uploaded_file($_FILES["Artwork"]["tmp_name"], $path_image . $imageName); header("Location: http://pitchmystuff.co.uk/m/digidist/tracks/".$idAlbum.""); } }else{ //echo "invalid file"; echo ''; }
대답
아마
list($width, $height, $type, $attr) = getimagesize($_FILES["Artwork"]['tmp_name']);
http:www.php.net /manual /en /features.file -upload.post -method.php
'개발 스크랩 메모 > PHP' 카테고리의 다른 글
PHP-바꾸기 (0) | 2020.12.19 |
---|---|
php JSONu encode 일하지 않습니다. (0) | 2020.12.19 |
PHP cURL POST 가 지원하지 않는 미디어 형식으로 되돌아가겠습니다 (0) | 2020.12.18 |
PHP 헤더 리디렉션이 작동하지 않음 [중복] (0) | 2020.12.18 |
PHP set_time_limit ()를 사용하여 nginx 504 게이트웨이 시간 초과 방지 (0) | 2020.12.18 |
Comments