PHP example for listing directory contents
Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters
Loads the contents of a dir an sorts them by the date of creation.
Java code example to list the Files or Subdirectories in a Directory
Shows how to create a simple file download by using PHP. The content could also be dynamically generated)
Java code for listing files or sub-directories in a directory
Need to unzip a file? this function can do that for you. It is reccomended that the functions.php file and the file that exicutes the unzip function are NOT in the same directory as the zip files. unzip ( string $zipfile , string $newLocation ) zipfile gets the name of the current zip file. newLocation is where you want to store all the...
For downloading very large files (10 meg or more), split the file into chunks when sending.
Useful php code to see if the current file is being included or run directly.
This MATLAB code snippet reads in a file stored in the current directory and stores specified lines from the file in a new cell array for manipulation in MATLAB.
Program shows copying one text file from source location to any other location (destination), plus possibility of changing its name, and also shows many language features in exception handling. This program should be run from the command prompt
File inputs can have an attribute of "multiple" which then allows multiple files to be selected in the file section dialog box.
The .NET Framework doesn't support automatic detection of character encoding in the default file I/O methods. This is a quick function that returns True in the specified file is Unicode.
C++ code example shown here how to write to text file.
How to read text file and print its contents to the console line by line.
Simplest way to to export a MySQL table to a pipe delimited file.
Exam code to backup MySQL Database to SQL File
An example to include another PHP file into a PHP script
Shows how to upload a single file to a FTP server.
You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.