₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,346,884 members, 8,525,641 topics. Date: Friday, 27 November 2026 at 03:26 AM

Toggle theme

Simple Tips For PHP File Upload - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Simple Tips For PHP File Upload (967 Views)

1 Reply

Simple Tips For PHP File Upload by skptricks(op): 6:44am On Oct 16, 2017
With the help of php, it is very easy to upload files to the server. PHP file upload features allows you to upload binary and text files both. Depending upon the requirement one can upload single and multiple files through PHP script by modifying the few line of codes.
PHP $_FILES

The PHP global $_FILES contains all the information of file. By the help of $_FILES global, we can get file name, file type, file size, temp file name and errors associated with file.

Lets see the more examples, through which you will learn how to access the $_FILES global.

$_FILES['filename']['name']

It will return the file name

$_FILES['filename']['type']

It will return MIME type of the file.

$_FILES['filename']['size']
It will return size of the file in bytes.

for more description : http://www.skptricks.com/2017/10/php-file-upload-using-post-method.html

1 Reply

Payment Gateway On Registration Page With File Upload Functions On Wordpress • A Thread For PHP Code Igniter Framework Tutorial • Looking For Php Freelancers To Work On A Big Project With Me • 2 • 3 • 4

You Can't Resist This Mouth-watering Opportunity For Python Programmers. • Get Info On Where To Get Electronic And Mechatronic Components Here • App Developers Needed For A Project