In your PHP scripts at some stage you may wish or need to completely change the directory in which to look in - for examples the directory to look for files to include. This tutorial shows you how to change dir for file inclusion.
Version: n/a Platform(s): n/a Updated: Tue Aug 2 2005
Nowadays, PHP programmers generally use databases such as MySQL to do everything, however, every programmer should at least know the basics of reading and writing to files - that IS what a database does. Come read an all you need to know introduction to file handling.
Version: 1 Platform(s): linux, windows, freebsd, osx, sun Updated: Mon Jan 10 2005
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.
Version: 1 Platform(s): linux, windows, freebsd, osx, sun Updated: Wed Dec 15 2004
Returns the directory from a string.
EX: /test/ FROM /test/blah.php
Shows how to create functions, use explode(), count(), while() and preg_replace() functions.
Version: 1.0.0 Platform(s): linux, windows Updated: Fri Oct 8 2004
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.
With this program you can upload file with a browser on your server, or other people. You can become an e-mail is someone upload files. You can protect the upload with a password. Overwrite protection You can choice the allowed extension, the max file size and some more. HTML infos at begin with CSS. You can choice how many files you want to upload. You can choice: wrong pw output or not. Overwrite file or add a random extension. You can crypt your password with MD5. View files with download the upload file.
Version: 0.5 Platform(s): UNIX, Win, Linux Updated: Tue Dec 9 2003
Teach yourself how to write a file upload class that will not only upload, but validate file extensions, sizes, users, and much more. Make your life easier!
Version: 1.0 Platform(s): All Updated: Tue Jul 29 2003
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.
This script renames all the files (or some of the files) in a given directory (default is cureeent dir) with a random names, leaving the extensions as they were before.
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.
Version: n/a Platform(s): n/a Updated: Tue Mar 27 2001
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.
Version: n/a Platform(s): n/a Updated: Wed Nov 29 2000
PHP4 comes with a bunch of new functions designed to allow FTP connections over the Web. This article explores the new FTP functions, together with an example of how they can be used to build a browser-based FTP client.
Version: n/a Platform(s): n/a Updated: Thu Nov 9 2000
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.
Version: n/a Platform(s): n/a Updated: Sat Sep 9 2000
This tutorial explains how to parse a given text file and display specific content using PHP. The presented example shows how to parse a weather information for your desired city. It also includes a shell script for downloading the weather data text file from http://weather.noaa.gov.
Version: n/a Platform(s): n/a Updated: Fri Jun 9 2000