Jump to content

Show Windows UNC path without SERVER_ROOT attached to it


solarisuser

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?

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.