![]() |
||
File I/Ofiles Scripts & FunctionsWrite to a file This script writes to a file the html content you entered from an online form. It uses the fopen and fwrite functions of Php. files category Reading from a file and Outputting in a String This script reads the content of a file and outputs its content into a string. It uses the file_get_contents() function which opens, reads and closes the file automatically. files 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. 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... files category 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 |
|
Categories |