Answers for "check if value is file php"

PHP
0

check file selected in php

if(!isset($_FILES['file_upload']) || $_FILES['file_upload']['error'] == UPLOAD_ERR_NO_FILE) {
    echo "Error no file selected"; 
} else {
    print_r($_FILES);
}
Posted by: Guest on September-23-2020
5

php check if file exists

if (!file_exists('http://mysite.com/images/thumbnail_1286954822.jpg')) {   
$filefound = '0';                         
}
Posted by: Guest on March-24-2020

Code answers related to "check if value is file php"

Browse Popular Code Answers by Language