JustinStone Posted April 9, 2014 Share Posted April 9, 2014 Hey everyone. I have a folder on my server named this abc$45$def$45$ghi Originally, before a script created this folder on my server, it was name abc-def-ghi So it took the '-'s and put in some special characters. Now, what you see below does not work. When I try to use the folder name below, my url box in my browser only shows some of it. $var = " abc$45$def$45$ghi"; header("location: http://mysite.com/myscript.php?type=" . $var . ""; the above outputs in my url box the following. http:///www.mysite.com/myscript.php?type=abc$45$$45 Any ideas ? Quote Link to comment https://forums.phpfreaks.com/topic/287652-problem-displaying-this-folder-name-from-my-server/ Share on other sites More sharing options...
JustinStone Posted April 9, 2014 Author Share Posted April 9, 2014 Oopps, Think I found a problem with my line of code. Should be ok now. Quote Link to comment https://forums.phpfreaks.com/topic/287652-problem-displaying-this-folder-name-from-my-server/#findComment-1475583 Share on other sites More sharing options...
jazzman1 Posted April 9, 2014 Share Posted April 9, 2014 Have you ever heard about properly naming file and directory names under Unix/Linux or some other operating systems? Why are you using a dollar sign as a part of directory name? Quote Link to comment https://forums.phpfreaks.com/topic/287652-problem-displaying-this-folder-name-from-my-server/#findComment-1475590 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.