In this tutorial, I’m going to tell you how to upload file in PHP. A very useful aspect of PHP is its ability to manage file uploads to your server. Here are the two steps to do this: Upload-File Form in HTML Before you can use PHP to manage your uploads,… Read more »
The following snippet lists all files and subdirectories in the specified directory. For the files it lists the file size as well. It uses the following functions: opendir, readdir, is_dir, filesize. All the functions are available in PHP4 and PHP5 so the code runs without any problem on PHP4+.