How can I link to a local file in PHP?
I've tried all of these, but nothing works to prompt a file-download.
According to: http://php.net/manual/en/wrappers.file.php
I can add: file:///
But my editor doesn't like that when I also add the \ to designate the folder-structure, and the page then fails to load.
$path = "file:\\\E:\machine\files\months\";
$path = "file:\\\E:\\machine\\files\\months\\";
$path = "file:\\\E:/\machine/\files/\months/\";
$path = "file:\\\E:/machine/files/months/";
None of those work -- either the page fails to load, or the slashes aren't going the correct direction for local paths.
How can I link to a file on a local machine? (yes I know it will only work if the path structure is exactly the same)
Thanks
EDIT -- The issue isn't the filename. I add that later and that works fine. The issue is my syntax with path AND/OR file:///
My editor complains about file:///
https://i.stack.imgur.com/z4lRI.jpg