I plan to insert a PHP variable that contains the directory path for the file stored on my Windows machine. How to include this variable in the href tag inside my PHP script so that when a user clicks this link, it should be redirected to this specific folder and file.
For ex: $folder_path = 'C:\docs\test\file1.txt';
Right now I tried several different ways, but without success. I also did some research on the Internet, but, alas, I could not find the right answer.
If anyone has an idea, it would be grateful if it could be shared. Thanks
source share