I am working on a simple php guestbook/chat and I have its output in a table set at 500 width, my problem is when someone foolishly types '60' charatcters together without a space it doesn't even attempt to wrap and it stretches the screen to eternity! Is there a way to fix this?
use WIDTH="80%" instead of WIDTH="500"
personally, instead of also applying the fix that ryza provided, i would write a little function to wrap every X chars .. because width=80% doesn't always guarantee wrapping in every browser.
http://www.php.net/wordwrap
With a current (later than 4.0.3) version you can force the breakup of long lines.