itachi77 Posted August 29, 2010 Share Posted August 29, 2010 Hi guys, very quick question and i'm sure it's a simple reply, I have googled but can't seem to pinpoint what i need. I have some pdf files stored in a folder on my desktop. I want to open one of them when a link is clicked so i have: echo "<a href='C:\Desktop\pdfs\file1.pdf'>Click to view</a>" I would like to open it the browser. I can open files that are in the web folder but i don't know how to open ones in folders located outside the web folder. When i click the link nothing happens at all. Many many thanks. Quote Link to comment Share on other sites More sharing options...
Shp0ngl3 Posted August 29, 2010 Share Posted August 29, 2010 You have to put the pdf's in your webfolder. Quote Link to comment Share on other sites More sharing options...
itachi77 Posted August 29, 2010 Author Share Posted August 29, 2010 there's no way around it? The site will only be for that single computer not using internet. Quote Link to comment Share on other sites More sharing options...
Shp0ngl3 Posted August 31, 2010 Share Posted August 31, 2010 You could try using javascript Quote Link to comment Share on other sites More sharing options...
damianjames Posted September 13, 2010 Share Posted September 13, 2010 Security settings in at least some of the browsers (maybe works still in IE, haven't checked) prevent you from opening things with file:///c:/whatever. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.