View Tutorial Metadata Edit Content Revision History Add to Watchlist Add New Tutorial File uploads in PHP

File uploads in PHP

Introduction

If you want to transfer any kind of file from a user client to your server, with PHP you can achieve this via the HTTP protocol and a file browser.

There are many ways to upload files, however you should be aware of the implications of doing so, for example someone could upload a script file, and execute malicious code on your server.

On this page we will collect all the methods of doing file uploads in PHP:

Using (Framework) Components

Zend Framework

Starting with version 1.8, It's easy to upload files if you're using Zend Framework, check out File uploads with Zend_Form_Element_File

Are you familiar with other ways of uploading files? Please contribute!

Only plain text supported.

Optional

Required - will be kept private

Optional

 
 

Rating: (0+, 0-) In: PHP 5