Reputation: 3073
Can an Excel spreadsheet be opened from a shared network directory using PHP or JavaScript, so that when the file is saved, it will be saved back into that same directory?
I was offered this as a possible solution:
http://researchhubs.com/post/computing/javascript/open-a-local-file-with-javascript.html
Then I saw this question on Stack Overflow, but this question was talking about saving to a server:
Opening Excelfile and save to Server
I don't think this can be done, but I need confirmation.
Upvotes: 0
Views: 490
Reputation: 2621
You can open a file from a share using php, you will have to provide the path to it. You can not open a file from the computer in javascript, the user have to select the file in order to javascript have access to it.
Again, if you have access from the server to the share you can open, edit, write that file if the webserver have access to read/write it.
Upvotes: 1