05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

File Uploads<br />

To handle file uploads (supported in most modern browsers), use the $_FILES array.<br />

Using the various authentication and file upload functions, you can control who is<br />

allowed to upload files and what to do with those files once they’re on your system.<br />

Security concerns to take note of are described in Chapter 12.<br />

The following code displays a form that allows file uploads to the same page:<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!