solarisuser Posted April 22, 2006 Share Posted April 22, 2006 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? Link to comment https://forums.phpfreaks.com/topic/8096-show-windows-unc-path-without-server_root-attached-to-it/ Share on other sites More sharing options...
rawb Posted April 22, 2006 Share Posted April 22, 2006 Have you tried...[code]$path = "\\192.168.1.1\blah\blah";echo "Path is <A HREF=\"#\" onClick=\"window.location='$path';\">>Go Here</A>";[/code] Link to comment https://forums.phpfreaks.com/topic/8096-show-windows-unc-path-without-server_root-attached-to-it/#findComment-29516 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.