Learn how to perform simple task with files: open, read and write. Check the different commands you may use. Learn to use compressed files (.gz) to save time. An example is included to record IPs and referrers of our page.
This is a useful little script for changing the title of multiple pages based on the folder name. This comes in handy if you have several pages with the same title within one folder.
This concluding article in the series illustrates PHP's file functions, with examples of how to read and write files on the system. It also includes an explanation of user-defined functions, return values and function arguments, together with some not-so-real-life examples.
Asynchronous file uploads is quote popular feature in modern AJAX web-applications. However standard AJAX classes (XmlHttpRequest) does not have capabilities to process or send files selected with "file dialog" (input type="file"). This article contains example application (trivial file-sharing service, like rapidshare, megaupload or yousendit) which uses embedded frames (IFRAME) to upload file. While file is uploaded to hidden frame, user can still access web-page and fill "file description" field.
This tutorial will allow you to have a basic file upload interface with a PHP backend. This tutorial is only for educational purposes and the final PHP file upload script is not robust nor secure enough for a commercial solution.
This tutorial shows you how to upload an image on your server using PHP and html forms. You will also learn how to verify if the uploaded file is an image (checking the extension), if it doesn't overtakes a size limit and how to change the uploaded file name.