03-17-2010
thanks a lot for the quick responce!
10 More Discussions You Might Find Interesting
1. IP Networking
One of the users on my network took my aside and showed me a program called ethereal that can sniff out packets on the network. He was able to re-build a packet stream and see pretty clearly what other users where looking at.
I am using a hub. If I use a switch will that stop ability to be... (7 Replies)
Discussion started by: macdonto
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to installing solaris on a intel PC, but I am unable to do it.
So my question is where can I find some good documents (I tried sun.com did not find any thing).
If I want to dual boot between Linux and Solaris, would I install solaris first if so why?
Thanks alot
... (5 Replies)
Discussion started by: chamkila
5 Replies
3. IP Networking
Hi,
I work with an interface which connects to a Switch company and pulls information from certain sockets. During the night, somehow disconnects and it is difficult to prove if it is the interface or the Switch company responsible. I had the suggestion to install sniffers to do some network... (2 Replies)
Discussion started by: giulianob
2 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
Has any one installed ethereal on a unix machien ??
I m trying to install it on an hpux 11i machine and getting the following error
* Summary of Analysis Phase:
ERROR: Exclude ethereal.ethereal-RUN,r=0.10.11
ERROR: Exclude ... (0 Replies)
Discussion started by: binums
0 Replies
5. AIX
Hi to all ....
i must install ethereal-0.8.18-1 on aix system , for do some problems determination about network problems .
I have a .bff file of ethereal but for resolve dependencies i need this two .bff package needed :
freeware.gtk+.rte 1.2.8.0 # Base Level Fileset... (1 Reply)
Discussion started by: BabylonRocker
1 Replies
6. Shell Programming and Scripting
Hi All;
plz suggest me any perl script to get the ethereal messeges.To be more specific, i need to write a perl script that when an ethereal tool is started and captures any traces, can get that trace......... :) (0 Replies)
Discussion started by: trupti_rinku
0 Replies
7. Shell Programming and Scripting
Hi All........
i need a perl script that can trace the traces of the ethereal tool. PLZ help me out...............!!!!!!!!! (1 Reply)
Discussion started by: trupti_rinku
1 Replies
8. Solaris
I want to configure my Network card. On solaris 9 i386.
How to know the good Network device. I use prtconf
to display the device list. I'm searching the device name.
Like ifconfig device_name plumb
thanks you (2 Replies)
Discussion started by: simquest
2 Replies
9. Solaris
I haven't found a good resource for this. Does anyone have a good resource for this?
I've compiled the code, and all I have is an old twpol.txt from solaris 8.. :-( (0 Replies)
Discussion started by: biea
0 Replies
10. Solaris
I have installed ethereal on solaris 10. however I can execute the ./ethereal using the root account. if tried to execute same from non-root users i am facing the following error.
ethereal: The capture session could not be initiated (/dev/ce: Permission denied).
Please check to make sure... (2 Replies)
Discussion started by: vishwanathhcl
2 Replies
WORDWRAP(3) 1 WORDWRAP(3)
wordwrap - Wraps a string to a given number of characters
SYNOPSIS
string wordwrap (string $str, [int $width = 75], [string $break = "0], [bool $cut = false])
DESCRIPTION
Wraps a string to a given number of characters using a string break character.
PARAMETERS
o $str
- The input string.
o $width
- The number of characters at which the string will be wrapped.
o $break
- The line is broken using the optional $break parameter.
o $cut
- If the $cut is set to TRUE, the string is always wrapped at or before the specified $width. So if you have a word that is larger
than the given width, it is broken apart. (See second example). When FALSE the function does not split the word even if the $width
is smaller than the word width.
RETURN VALUES
Returns the given string wrapped at the specified length.
EXAMPLES
Example #1
wordwrap(3) example
<?php
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20, "<br />
");
echo $newtext;
?>
The above example will output:
The quick brown fox<br />
jumped over the lazy<br />
dog.
Example #2
wordwrap(3) example
<?php
$text = "A very long woooooooooooord.";
$newtext = wordwrap($text, 8, "
", true);
echo "$newtext
";
?>
The above example will output:
A very
long
wooooooo
ooooord.
Example #3
wordwrap(3) example
<?php
$text = "A very long woooooooooooooooooord. and something";
$newtext = wordwrap($text, 8, "
", false);
echo "$newtext
";
?>
The above example will output:
A very
long
woooooooooooooooooord.
and
something
SEE ALSO
nl2br(3), chunk_split(3).
PHP Documentation Group WORDWRAP(3)