Internal links to Windows shares [message #163948] |
Tue, 14 December 2010 18:14 |
tw_nick
Messages: 57 Registered: October 2010 Location: Dallas, TX
Karma: 0
|
Member |
|
|
Is there a way to include a hyperlink to a shared file on a network drive? I've tried a variety of syntax approaches, using the URL tags, but nothing has proved successful as of yet.
Let's say I want to include a link in a message to a file on a server with the path:
\\server1\folder1\subfolder2\filename.xls
How can I link to it from post? Also, if it affects the answer, sometimes the path may include blank spaces...
Thanks!
[Updated on: Tue, 14 December 2010 18:15] Report message to a moderator
|
|
|
|
|
Re: Internal links to Windows shares [message #163953 is a reply to message #163951] |
Wed, 15 December 2010 20:15 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
You cannot for security reasons link a local file via HTML, the only way to serve a file that is not in your webservers working directories is by serving it via a PHP function. This is a "limitation" in HTML and something you cannot work around other than coding a PHP file similair to the getfile.php that is used to serve attachments on the forum.
The easy answer: It is impossible to do and not something we/you can tweak fudforum to do
Ginnunga Gaming
[Updated on: Wed, 15 December 2010 20:16] Report message to a moderator
|
|
|
Re: Internal links to Windows shares [message #163954 is a reply to message #163953] |
Wed, 15 December 2010 20:19 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
You could code a PHP file that you place in your webserver directory that you can give GET input, for example, the URL could be like this:
[url=www.yourforum.com/deliverfile.php?name=filename.xls]filename.xls[/url]
This is not a good sollution though, a much better sollution to make your local file accessible from the web would be to create a CRON job that scans your directory for files that needs to be made public and then copy those files to a folder accessible by the webserver.
Ginnunga Gaming
[Updated on: Wed, 15 December 2010 20:20] Report message to a moderator
|
|
|