Answers for "php get files from request"

PHP
8

php get file contents

<?php
file_get_contents("file.txt");
?>
Posted by: Guest on May-12-2020
0

php get file type from url

$file_info = new finfo(FILEINFO_MIME_TYPE);
$mime_type = $file_info->buffer(file_get_contents($image_url));
echo $mime_type;
Posted by: Guest on March-16-2021
0

which is file attributes in php

ATTRIBUTE					DESCRIPTION
  [name]					Name of the which is uploading
  [size]					Size of the file
  [type]					Types of the file (like .pdf,.zip,.jpeg....etc)
  [tmp_name]				A temporary address where the file is located before processing the upload request
  [error] 					Types of error occurred when the file is uploading
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language