File I/O
Back to top
Php by category
File I/O Scripts & Functions
Tar gz a file using the exec function This online script creates a file using the exec command and compress the same file using the tar.gz extension. The result string is also displayed.
files category
Rename files inside a directory
From a given path, this code provides a way to list all files and rename each one while extracting unwanted files. It uses serveral Php File I/O functions such as rename , is_dir ...
File I/O category
Reading & Updating a File
This script reads a file line by line using the fgets function and updates the file by either adding a line or updating a field contained on a line.
File I/O category
Read from a file - Output in String
This script reads the content of a file and echoes it into a string. It uses the file_get_contents() function which opens, reads and closes the file.
File I/O category
Write to a file
This script writes to a file the content you just entered from an online html form. It uses the fopen and fwrite functions of Php.
File I/O category
You may send your contribution at anytime .
Or ask for a script onto the Webmaster Online Scripts Forum