avillanu Posted August 29, 2007 Share Posted August 29, 2007 In my site I have a lot of content title with spaces. This makes some odd looking formatting: http://www.domain.com/file.php?name=word1%20word2 Should I be concerned with the %20? I plan on implementing some sort of search engine friendly URLs using mod rewrite soon.. What commands can I use to parse to remove it? Quote Link to comment https://forums.phpfreaks.com/topic/67260-solved-underscore-_-instead-of-spaces/ Share on other sites More sharing options...
MadTechie Posted August 29, 2007 Share Posted August 29, 2007 use urldecode Quote Link to comment https://forums.phpfreaks.com/topic/67260-solved-underscore-_-instead-of-spaces/#findComment-337399 Share on other sites More sharing options...
avillanu Posted August 30, 2007 Author Share Posted August 30, 2007 I'm not sure if that would solve any problem I have? My main question is if using that sort of URL would hurt me in anyway Quote Link to comment https://forums.phpfreaks.com/topic/67260-solved-underscore-_-instead-of-spaces/#findComment-337733 Share on other sites More sharing options...
MadTechie Posted August 30, 2007 Share Posted August 30, 2007 i wouldn't worry too much.. but unless you go over 255 chars (some old clients may fail) I'm not sure if that would solve any problem I have? well you asked What commands can I use to parse to remove it? so use urldecode Quote Link to comment https://forums.phpfreaks.com/topic/67260-solved-underscore-_-instead-of-spaces/#findComment-337737 Share on other sites More sharing options...
Jessica Posted August 30, 2007 Share Posted August 30, 2007 If you're going to use mod_rewrite soon, why are you worrying about this? Quote Link to comment https://forums.phpfreaks.com/topic/67260-solved-underscore-_-instead-of-spaces/#findComment-337739 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.