word search and wrap crisis

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

Post Reply
theclay7
Forum Commoner
Posts: 50
Joined: Wed Feb 19, 2003 3:17 am

word search and wrap crisis

Post by theclay7 »

i have a forum and I would like to perform the following task:

when user post a message as follow:

"heydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitout
<img src='http://www.sasi.co.za/saycheese/WCwallp ... 4.768).jpg'>
howdoyoulikeitpleaseletmeknowhowdoyoulikeitpleasel
etmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikei
tpleaseletmeknow."

I want the words to be in wordwrap where i did wordwrap function, but then if I want to post this picture, the wordwrap function will break the url of the picture with a % and hence, the picture will not be shown. I would like to write a function the will search each word in the messge and when it sees "http://" it will not wrap the area of "http://........." but the other words will be wrapped.

how do I do it?Image
theclay7
Forum Commoner
Posts: 50
Joined: Wed Feb 19, 2003 3:17 am

p

Post by theclay7 »

Image
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

which dictionary/wordlist do you use?
theclay7
Forum Commoner
Posts: 50
Joined: Wed Feb 19, 2003 3:17 am

Post by theclay7 »

:o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o

what is that?
Post Reply