PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
itsmani1
Forum Regular
Posts: 791 Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:
Post
by itsmani1 » Mon Mar 26, 2007 6:13 am
hi
I want to handle strings like
New "paint" provides wireless
in my url but they create problems and only show "New" i tried to solve it using urlencode() but it did not worked.
any idea
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Mon Mar 26, 2007 6:18 am
I strip everything that isn't alphanumeric out of URLs, and replace all the spaces with either _ or - (depending on the site specification).
lanasa
Forum Newbie
Posts: 14 Joined: Mon Mar 26, 2007 7:49 am
Location: Buffalo, NY
Post
by lanasa » Mon Mar 26, 2007 8:01 am
Can you give an example of the exact code you are using?