Re: [PHP] Follow-up to Hacker problem

2003-03-13 Thread Ernest E Vogelsinger
At 23:42 12.03.2003, Pag said:
[snip]
   Your tips were nice, guys, thanks a lot. I tried a few things and i 
decided to go for making all the checks server side, cant go safer than that.
   Just have a doubt on one of the checks, at least so far.
   I have a check for long words, because the shoutbox is in a IFRAME,
 so if 
someone posted a long word, the infamous horizontal scroll bar would 
appear. How can i check for long words on a string and remove them before 
they get written on the DB?
[snip] 

Check the archives - within the last 2 days there was a thread about
breaking up long words to avoid inappropriate posts to clutter the page layout.


-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Follow-up to Hacker problem

2003-03-12 Thread Pag
	Your tips were nice, guys, thanks a lot. I tried a few things and i 
decided to go for making all the checks server side, cant go safer than that.
	Just have a doubt on one of the checks, at least so far.
	I have a check for long words, because the shoutbox is in a IFRAME, so if 
someone posted a long word, the infamous horizontal scroll bar would 
appear. How can i check for long words on a string and remove them before 
they get written on the DB?

	Thanks.

	Pag



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Follow-up to Hacker problem

2003-03-12 Thread John W. Holmes
   Your tips were nice, guys, thanks a lot. I tried a few things
and i
 decided to go for making all the checks server side, cant go safer
than
 that.
   Just have a doubt on one of the checks, at least so far.
   I have a check for long words, because the shoutbox is in a
IFRAME,
 so if
 someone posted a long word, the infamous horizontal scroll bar would
 appear. How can i check for long words on a string and remove them
before
 they get written on the DB?

We answered this yesterday, weren't you paying attention? Either use
wordwrap() or one of the functions Ernest (I think it was him) or I
posted...

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php