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.
It is common to have downloads on your website, and sometimes you want to moderate your downloads by speed, or possibly hide the directory that the download is coming from, protecting all your other files. This is very possible and very simple to solve in PHP. All you need is the header() function and some files function.
When I first started learning PHP I didn’t want to overload myself with learning about SQL as well, so I used text files for storage instead (also known as flat-file databases).
I am going to show you how to write information to a text file using PHP. You don’t have to have any PHP knowledge at all in order to follow this tutorial.
Well, tired of FTP'n everything up to your site? Or even want to allow other members to upload files but you don't want to give them FTP access? Well lets create a file upload system that will take care of all your uploading woes. THis also employs some minimal security checks.
A collection of 14 tips on PHP functions on file input and output. Clear answers are provided with tutorial exercises on opening files for reading and writing, appending data to existing files, reading file by line or character, reading file in binary mode. Special topics are:
How To Append New Data to the End of a File?
How To Read One Character from a File?
How To Read a File in Binary Mode?
How To Read Data from Keyborad (Standard Input)?
How To Open Standard Output as a File Handle?
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Following on from Simple Text Storage With PHP, when using flat-file storage you also need to pull the data from the text files. This tutorial will explain how to extract a piece of information from a text file and display it.