O'Reilly logo

PHP Solutions: Dynamic Web Design Made Easy by David Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6 UPLOADING FILES

What this chapter covers:

  • Understanding how PHP handles file uploads
  • Restricting the size and type of uploads
  • Preventing files from being overwritten
  • Organizing uploads into specific folders
  • Handling multiple uploads

PHP's ability to handle forms isn't restricted to text. It can also be used to upload files to a server. In theory, this opens up great possibilities. For instance, you could build a real estate website where clients could upload pictures of their properties, or a site for all your friends and relatives to upload their holiday photos. However, just because you can do it, doesn't necessarily mean that you should. Allowing others to upload material to your website could expose you to all sorts of problems. You ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required