Jump to content

Archived

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

solarisuser

Show Windows UNC path without SERVER_ROOT attached to it

Recommended Posts

Hello All,

I am trying to echo a field that has "\\192.168.1.1\blah\blah" in an <A HREF> tag. So for example:

[code]
$path = "\\192.168.1.1\blah\blah";
echo "Path is <A HREF=\"$path\">Go Here</A>";
[/code]

The problem is, when you put your mouse over it the link, you'll notice that the server root was added to the beginning. The only way I know to fix it is to put "http://" in front of $path, but that doesn't make any sense. Anyone know how I can get around this?

Share this post


Link to post
Share on other sites
Have you tried...

[code]

$path = "\\192.168.1.1\blah\blah";
echo "Path is <A HREF=\"#\" onClick=\"window.location='$path';\">>Go Here</A>";

[/code]

Share this post


Link to post
Share on other sites

×

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.