Managing Files
The final segment of this Web application will manage files of any type. These scripts will allow users to upload files from their computers through a prompt in their Web browsers (Figure 11.15). This file will then be uploaded to the server and stored. A record will also be added to the database to reflect the upload.
Figure 11.15. Users will be allowed to select a file to be uploaded to the server.
Uploading files
Like handling any HTML form using PHP, the process of uploading a file has two dimensions. First the HTML form must be displayed, with the proper code to allow for file uploads. Then upon submission of the form, ...
Get PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.