tet3828 Posted February 3, 2008 Share Posted February 3, 2008 I am trying to get my script to display and link using href tags to a folder on my server. it is a Linux based server being accessed by windows machines. when I type this into my run menu on my windows machine to access the folder: \\10.0.11.171\www\TRAINING SESSIONS\$variableDir\$variableDir works fine but when I put it in a href tag in my script the slashes and varibles confuse it: echo "<a href="'\\$ip\TRAINING SESSIONS\$variableDir\$variableDir'">Folder Link</a>"; this gives me the ole' encapsed string error. any suggestions? please and thanx! p.s.I love the fact that there is people in these forms 7am on a super bowl sunday Quote Link to comment https://forums.phpfreaks.com/topic/89187-a-href-link-to-lan-folder-with-variables-help/ Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 p.s.I love the fact that there is people in these forms 7am on a super bowl sunday Because the rest of the world doesn't give two hoots about the superbowl. try... echo "<a href='\\\\$ip\\TRAINING SESSIONS\\$variableDir\\$variableDir'>Folder Link</a>"; Quote Link to comment https://forums.phpfreaks.com/topic/89187-a-href-link-to-lan-folder-with-variables-help/#findComment-456680 Share on other sites More sharing options...
tet3828 Posted February 3, 2008 Author Share Posted February 3, 2008 Thanks for the suggestion! I got it with this: echo "<a href='\\$ip\TRAINING SESSIONS\$state\$clinic'>Folder Link</a>"; but now its trying to access it as a page in my browser: http://10.0.11.171/10.0.11.171/TRAINING%20SESSIONS$state$clinic <---this is show in my address bar crap. I was hoping it would open the folder the way it does when I launch the folder from the run menu. Anyone have some clues on how to do this? Quote Link to comment https://forums.phpfreaks.com/topic/89187-a-href-link-to-lan-folder-with-variables-help/#findComment-456684 Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 Of course its going to ope it in your browser, your accessing it via http. Explain exactly what it is your trying to do. Quote Link to comment https://forums.phpfreaks.com/topic/89187-a-href-link-to-lan-folder-with-variables-help/#findComment-456686 Share on other sites More sharing options...
tet3828 Posted February 3, 2008 Author Share Posted February 3, 2008 I was hoping the link would open the folder the same way it does when you go to My computer and navigate to the folder or when you go to the run menu and type the network location as a folder. its purpose it to open the folder on the server so users can drag and drop files into that folder. but its no huge deal. its not complicated to navigate manually. Quote Link to comment https://forums.phpfreaks.com/topic/89187-a-href-link-to-lan-folder-with-variables-help/#findComment-456687 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.