php-windows Digest 30 Mar 2003 03:03:55 - Issue 1659
Topics (messages 19184 through 19187):
Re: Tables (might be OT)
19184 by: Kobus Myburgh
19185 by: Ben O'Neill
19186 by: Paul Roberts
upload question
19187 by: Anthony Ritter
Administrivia:
To subscribe to
Greetings all,
Using PHP 4.1.1 / Apache Server / MS Win 98 / IE 5.5
The following script is from Julie Meloni's book PHP Fast and Easy on page
170-174.
The first part is an html form in which the user browses and chooses a file
to be upoloaded to the server.
The script works fine in that when I
you could use css word-wrap attribute to control this.
i.e. word-wrap: break-word;
Best Wishes
Paul Roberts
mail at paul-roberts dot com
- Original Message -
From: "Bobo Wieland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 10:37 A
Hi, just one correction to Kobus' code:
function myTruncate ($verylongstring, $length) {
if (strlen($verylongstring) > $length) {
$shorterstring = substr($verylongstring,0,$length-1) . "...";
} else {
$shorterstring = $verylongstring;
}
return $shorterstring;
}
He was missing a "{
Hi,
I have done a similar thing that worked reasonably well in Visual Basic (however,
included is a PHP snippet which might do the trick - I am not a PHP pro).
write a small PHP function to select only a part of the string, say the first 15
characters, and append "..." to the string, for exampl
php-windows Digest 29 Mar 2003 10:35:32 - Issue 1658
Topics (messages 19181 through 19183):
Re: Error, does anyone see anything wrong?
19181 by: Dash McElroy
Re: What does"Query was empty" mean?
19182 by: cpdm.efn.org
Tables (might be OT)
19183 by: Bobo Wieland
Adm
When using dynamic content, like PHP interacting with MySQL it is easier to
use tables then anything else. But tables will get you into trouble! If
someone enters a really long word the tablecell will expand so that the
hwole word will be shown.
Is there some way I can prevent this? With html, php