What are some methods to save the path to a local file without uploading it or opening it with PHP?

When working with local files in PHP, it may be necessary to save the path to a file without actually uploading it or opening it. One way to achieve this is by storing the file path in a variable or database for future reference. This can be useful when you need to reference the file later without actually processing it at the moment.

// Save the path to a local file without uploading or opening it
$filePath = '/path/to/your/file.txt';

// Store the file path in a database for future reference
// Example: $mysqli->query("INSERT INTO files (file_path) VALUES ('$filePath')");