Jump to content

Open file in folder outside web


itachi77

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/212011-open-file-in-folder-outside-web/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.