Snaps in category File System

List Directory Contents in PHP

This code allows to list the contents of any given directory.

PHP Write to File

A simple function that writes whatever you pass to it in a file.

Recursive Find File

Recursively looks for a file in directories in the current a top-level from the calling…

Modify file date on server

Use this snippet to modify the access and modification times of a file on the…

Non-looping nice file size

No loop, does laundry.

Sum of size of files in directory

see title

File extension

Returns the file extension of a file


This functions will return the CRC32 of a file.

Force file download

Forces a file download

Combined Dirs File Listing

Returns a file list from multiple directories

1 2