Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7952525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:53:08+00:00 2026-06-04T02:53:08+00:00

I am trying to get a file on a server on a lan to

  • 0

I am trying to get a file on a server on a lan to get opened by a client pc via a hyperlink. For now I only need this to work on IE.

lets say that the filename is stored in the variable $sPath so that file_exists($sPath) returns true, and the server name is server_name. What would the hyperlink look like? here are a few of the many combinations I have used…

<a href="file:///intocloud$sPath">here</a> 
<a href="file://intocloud$sPath">here</a> 
<a href="file://///intocloud$sPath">here</a> 
<a href="/////intocloud$sPath">here</a> 

none of these work, and I’ve tried a few other things also.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:53:10+00:00Added an answer on June 4, 2026 at 2:53 am

    IE will accpet this

    <a href="file://\\server\shared\test.txt" >test me</a>
    

    [EDIT]

    In fact this also works

    <a href="file:////server/shared/test.txt" >test 2</a>
    

    Make sure you have the correct UNC path working in windows to begin with. Start > Run should be able to open it. IE is very lenient when it comes to what you can put in the URL address bar, even if its not strictly speaking valid for all browsers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the network file page e.g. smb://server.local/tech/file.pdf You can see this
I've been trying to get this code to work for hours! All I need
I'm trying to get a Ruby script to download a file off a server,
I'm trying to get a file via FTP per FtpWebrequest - the download fails
I trying to get a file from an FTP server using ftp_get from PHP
I have been trying to get around this error for a day now and
I am trying to get a .sql file from an http web server using
I'm trying to get server-side validation of an Entity Framework String Property to work.
I'm trying to get file contents, replace some parts of it using regular expressions
I am trying to get file extension for a file in shell script. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.