Background: Me and my two colleagues all have a folder on ours computer called: C:\Synkade filer. So any file that is there, we all have access to.
Now I have created a small MySQL database that saves the path to a file on that local folder, for instance C:\Synkade filer\pdffiles\file1.pdf
The php script I made has no problem in uploading new files into the *C:\Synkade filer\pdffiles* and saving the path information into MySQL. The idea is that when I click on a small pdf-icon the php script will get the path information from MySQL and open the file on the browser (firefox). Say the path information in MYSQL is: C://Synkade filer/pdffiles/file1.pdf The retrieving code is:
<a href="' . $row['fup']. '"><img src="./images/pdf_icon.gif" width="16" height="16" border="0" alt="PDF file" /></a>
, where $row['fup'] is the row information from MySQL.
The problem is that this doesn’t work. Is it because the file is on a local drive (C:)?
Before you ask: why not upload the files on my web server? The answer is that I would prefer not to. The pdf files do have sensitive information that we three only show have access to. So it feels better that the pdf files are only accessible to us on our own computers. The point is also that if someone else tries to open the pdf file, it simple will not find it since it will not exist on his/hers device.
So my question is: Is there a way to make the access to the files from a local drive to work. Is this a script problem or is this a computer configuration issue?
I need to say that this is my first PHP-MySQL database ever, so my knowledge is limited. I am thankful for any help I can get.