Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,446 members, 7,816,026 topics. Date: Thursday, 02 May 2024 at 11:55 PM

Simple Tips For PHP File Upload - Programming - Nairaland

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

A Thread For PHP Code Igniter Framework Tutorial / Looking For Php Freelancers To Work On A Big Project With Me / SMS Gateway For Php (2) (3) (4)

(1) (Reply)

Simple Tips For PHP File Upload by skptricks: 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)

Add Push Notification To Your Website Or Mobile App And Engage Your Visitors / Get Source Codes At Affordable Price....� / Make More Money Online Using This Software!!

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.