08-26-2015
Hi All ,
Thanks for all of your replies.
It was informative and good.
Regards ,
Rj
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi I was successful in installing redhat 7.2 with no problems or error =) (first try) and It took me about 40 minutes to install it on a p233 mmx. It's running Gnome. I have some issues which I'm unsure of how to deal with.
1.How do I install an apache server, or is there one simular that... (11 Replies)
Discussion started by: Special K
11 Replies
2. UNIX for Dummies Questions & Answers
If I have an ADSL connection (therefore with a static IP Address) is it possible to use Red Hat Linux 7.1 straight from the CD to become a web server to host my own web pages (If I have a domain name registered to that IP Address).
I've read about Apache, is this what is used to make files... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies
3. UNIX for Dummies Questions & Answers
I have just installed RH7.2 Server and along with apache 1.3 and PHP. I am able to FTP from my linux box to other remote maches, but am unable to FTP to the linux box from other remote machines. The message I get is: A remote host has refused an attempted connect operation. I have done some... (3 Replies)
Discussion started by: jyoung
3 Replies
4. Linux
Is it true that you can't have the crash dump server/client on the same server?
I know I've installed Nagios open source before, I though it's only for that kind of thing. I never though that Red hat ent 4 would be like client/server on the crash dump.
if someone is having problem with high... (0 Replies)
Discussion started by: itik
0 Replies
5. Linux
we are receiving following error in our application server & server not booted:-
"INIT IP ID x ,Respawning too fast; disable for 5 minutes."
Please give me solution for above mention problem as early as possible .
AKM (3 Replies)
Discussion started by: akm9999
3 Replies
6. Red Hat
Hello
Does anyone know if it s complicated process to change a Red Hat Server host name that also has a Oracle db installed on it?
rgds
D (2 Replies)
Discussion started by: deedaz
2 Replies
7. Red Hat
I have failed many times on install red hat in virtual machine, can anybody provide the good image file of red hat? (3 Replies)
Discussion started by: wulaishiwo
3 Replies
8. Red Hat
Hello,
For some reason we are unable to ssh into one of our servers. It is running Red Hat 6.1. We have tried moving in a new sshd_config file as well as a new /etc/pam.d/system-auth file. The server has LDAP enabled and the server side is Oracle directory server. Just to simplify things we... (0 Replies)
Discussion started by: s ladd
0 Replies
9. Red Hat
Hi guys,
What is the best server for media streaming over network, when I googled some stuff I found that most of these articles talk about VLC, and according to what I know that is VLC is a third party application, and I don't know actually if there any standard linux streaming server. ... (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies
10. Red Hat
A client is accessing our JBoss server. In the past, we set up a keystore and everything worked fine.
That certificat expired and we've installed the new one. Now the client is getting the following error -
HTTP/1.1 500 Internal Server Error
Date: Mon, 14 Apr 2014 13:25:44 GMT
Server:... (1 Reply)
Discussion started by: kkinney
1 Replies
LEARN ABOUT PHP
str_word_count
STR_WORD_COUNT(3) 1 STR_WORD_COUNT(3)
str_word_count - Return information about words used in a string
SYNOPSIS
mixed str_word_count (string $string, [int $format], [string $charlist])
DESCRIPTION
Counts the number of words inside $string. If the optional $format is not specified, then the return value will be an integer representing
the number of words found. In the event the $format is specified, the return value will be an array, content of which is dependent on the
$format. The possible value for the $format and the resultant outputs are listed below.
For the purpose of this function, 'word' is defined as a locale dependent string containing alphabetic characters, which also may contain,
but not start with "'" and "-" characters.
PARAMETERS
o $string
- The string
o $format
- Specify the return value of this function. The current supported values are:
o 0 - returns the number of words found
o 1 - returns an array containing all the words found inside the $string
o 2 - returns an associative array, where the key is the numeric position of the word inside the $string and the value is the
actual word itself
o $charlist
- A list of additional characters which will be considered as 'word'
RETURN VALUES
Returns an array or an integer, depending on the $format chosen.
CHANGELOG
+--------+--------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+--------------------------------+
| 5.1.0 | |
| | |
| | Added the $charlist parameter |
| | |
+--------+--------------------------------+
EXAMPLES
Example #1
A str_word_count(3) example
<?php
$str = "Hello fri3nd, you're
looking good today!";
print_r(str_word_count($str, 1));
print_r(str_word_count($str, 2));
print_r(str_word_count($str, 1, 'aaac3'));
echo str_word_count($str);
?>
The above example will output:
Array
(
[0] => Hello
[1] => fri
[2] => nd
[3] => you're
[4] => looking
[5] => good
[6] => today
)
Array
(
[0] => Hello
[6] => fri
[10] => nd
[14] => you're
[29] => looking
[46] => good
[51] => today
)
Array
(
[0] => Hello
[1] => fri3nd
[2] => you're
[3] => looking
[4] => good
[5] => today
)
7
SEE ALSO
explode(3), preg_split(3), split(3), count_chars(3), substr_count(3).
PHP Documentation Group STR_WORD_COUNT(3)