A collection of 12 tips on uploading files with PHP pages. Clear explanations and tutorial exercises are provided on creating file upload HTML tags, setting encoding type on HTML forms, getting uploaded file information, storing uploaded file in database.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
This is a step-by-step tutorial that shows how to upload files to the server through an HTML form and PHP. It covers creating the client-side HTML, accessing the file from PHP, and processing the uploaded File in PHP.
This article shows how to upload files in PHP. Uploading files in PHP is very easy. You don't have to use any components as you do in ASP. All the file handling is done by built-in PHP functions.
Seems more and more people are wanting to edit files on-line. Also a common problem in on-line editors is the textarea because editors on-line use the same code, so it breaks the editor. This will address this problem be tricking the the online editor into thinking it did not in fact load a file.
You've already seen how PHP4's FTP functions can help you interact with files on a remote server. In this article, learn how to use PHP's other file and directory manipulation functions, and build an equivalent application that demonstrates the difference between the two approaches.
A collection of 8 tutorials on working with directories and files:
How To Create a Directory?
How To Remove an Empty Directory?
How To Remove a File?
How To Copy a File?
How To Dump the Contents of a Directory into an Array?
How To Read a Directory One Entry at a Time?
How To Get the Directory Name out of a File Path Name?
How To Break a File Path Name into Parts?
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.