This series of tutorials focuses on working with system and file processing in PHP.
- 1PHP: How to convert CSV data to HTML tables
- 2How to get the current directory of the PHP script
- 3PHP: How to list all files in a directory
- 4PHP: How to copy a file to another directory
- 5PHP: How to Delete a File
- 6PHP: How to delete a directory and its contents
- 7PHP: How to Convert a Relative Path to an Absolute Path
- 8PHP: How to Create or Move a Directory
- 9PHP: How to Access Files in the Parent/Child Directory
- 10PHP: Checking if a File or Directory Exists
- 11PHP: How to get the size of a file (in bytes)
- 12PHP: How to read and write to a text file
- 13PHP: How to calculate total size of a folder (in bytes)
- 14PHP: Reading and Writing to an HTML File
- 15PHP chmod() function: A practical guide (with examples)
- 16PHP: How to Iterate Over All Files in a Directory
- 17PHP: How to read and write to a JSON file
- 18PHP: How to read and write to an XML file
- 19PHP: How to download a large file from the internet
- 20PHP: How to get the creation time of a file or directory
- 21PHP: How to read and write to a CSV file
- 22PHP: How to get file name/extensions from a path
- 23PHP: How to Validate a File Path
- 24PHP: How to zip/unzip files
- 25PHP: How to read a file line by line (3 approaches)
- 26PHP: How to append a line to a file
- 27PHP: How to check if a file is in use
- 28PHP: How to check if a file is writable (2 approaches)
- 29PHP: How to Rename a File/Directory
- 30PHP file error – failed to open stream: Permission denied
- 31PHP: How to replace a line in a text file
- 32PHP: Open a file if it exists, otherwise create it
- 33PHP: How to Upload a File to AWS S3
- 34PHP: How to upload a file to Dropbox
- 35PHP: How to bulk rename files based on a pattern
- 36PHP: Checking if a remote file exists via HTTP
- 37PHP: Finding Files with Regex
- 38PHP: How to handle exceptions when processing files
- 39PHP: How to read and write to a binary file
- 40PHP: How to Change Encoding of a File
- 41PHP: How to create a temporary file/directory
- 42PHP: Sorting Files by Date Modified
- 43PHP: Sorting Files by Size
- 44PHP: How to set timeout and max memory for file operations
- 45PHP: How to get system information (CPU, RAM, OS, Disk Space)
- 46PHP: How to Encrypt and Decrypt Files
- 47How to resize images in PHP
- 48How to programmatically add watermark to an image in PHP
- 49How to Write Text on an Image in PHP
- 50PHP: How to Convert an Image to Grayscale
- 51PHP: How to change image type (JPG/PNG/GIF) without losing quality
- 52PHP: How to Change Image Metadata
- 53PHP: How to parse PDF files
- 54PHP: How to write to a PDF file
- 55PHP: How to execute shell commands with shell_exec()
- 56PHP: List all images in a directory (ignoring other file types)
- 57PHP: How to create directories based on date (YYYY/MM/DD)
- 58PHP: Find and download photos by keyword from Unsplash API
- 59How to parse/decode QR codes in PHP