-Original Message-
From: Marco Behnke [mailto:ma...@behnke.biz]
Sent: 19 August 2012 06:39
To: php-general@lists.php.net
Subject: Re: [PHP] How do I do count the occurrence of each word?
Am 19.08.12 06:59, schrieb tamouse mailing lists:
On Sat, Aug 18, 2012 at 6:44 PM, John
On Sun, Aug 19, 2012 at 12:38 AM, Marco Behnke ma...@behnke.biz wrote:
Am 19.08.12 06:59, schrieb tamouse mailing lists:
On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston
jt.johns...@usherbrooke.ca wrote:
I want to parse this text and count the occurrence of each word:
$text =
I want to parse this text and count the occurrence of each word:
$text =
http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.html; #Can I
do this?
$stripping = strip_tags($text); #get rid of html
$stripping = strtolower($stripping); #put in lowercase
First of all I
On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston
jt.johns...@usherbrooke.ca wrote:
I want to parse this text and count the occurrence of each word:
$text = http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.html;
#Can I do this?
$stripping = strip_tags($text); #get rid of html
Am 19.08.12 06:59, schrieb tamouse mailing lists:
On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston
jt.johns...@usherbrooke.ca wrote:
I want to parse this text and count the occurrence of each word:
$text = http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.html;
#Can I do this?
On Sun, 12 Nov 2006 22:02:51 -0700, Thomas Bonham wrote:
Thank you for that, it was a big help.
Can I also call function that way?
Again thank you for your help.
Thomas
Do you mean:
/index.php?action=search
?php
if (isset($_GET['action']) $_GET['action'] == 'search') {
Thomas Bonham schrieb:
I keep seeing the ? mark after many file names index.php?id=234.
So what I would like to know is how do you make them. I have heard that
they can make a programs life sampler when doing somethings with a
database.
in my scripts, i do it with the switch-syntax
===
Thank you for that, it was a big help.
Can I also call function that way?
Again thank you for your help.
Thomas
Tom Chubb wrote:
On 12/11/06, Thomas Bonham [EMAIL PROTECTED] wrote:
Hi All,
I keep seeing the ? mark after many file names index.php?id=234.
So what I would like to know is how
using form method=get..., it is automatically generated but you can also
do it manually in your anchor tag like so: a href=
www.domain.com/index.php?id=35format=htmlclick me/a
in your php you can get its value by use of the $_GET variable.
hth,
john
On 11/13/06, Thomas Bonham [EMAIL PROTECTED]
Hi All,
I keep seeing the ? mark after many file names index.php?id=234.
So what I would like to know is how do you make them. I have heard that
they can make a programs life sampler when doing somethings with a database.
Thank you,
Thomas
--
PHP General Mailing List (http://www.php.net/)
the ? is a delimiter between the url and the get variables, which are
set by the script itself, either through forms or by scripts.
Thomas Bonham wrote:
Hi All,
I keep seeing the ? mark after many file names index.php?id=234.
So what I would like to know is how do you make them. I have
On Wednesday 13 October 2004 08:30, Brent Clements wrote:
I've got the following string:
$text = football;
How do I put that string in italics using a true type font on an image?
Use the italic version of the font.
In case you're wondering, the italic/bold that you can select on fonts in,
Jason, thanks for the reminder, I completely forgot about the italic
version(s).
-Brent
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 8:08 PM
Subject: Re: [PHP] How do I do italics on a text string in an image
I sent this to the mysql list but it doesn't seem to be working so I was
hoping someone here could help.
I have the following 2 tables.
CREATE TABLE User (
UserKey INT NOT NULL AUTO_INCREMENT,
UserIDCHAR(16) NOT NULL UNIQUE ,
Name VARCHAR(20),
PRIMARY KEY (UserKey)
);
CREATE
hello
just a side note
instead of
ereg( '^$var(.*)$', $line, $matches )
use
preg_match('/^'.$var.'(.*)$/', $line, $matches)
since it is faster than ereg.
Regards
Stefan Langer
On 16-Sep-2003 Susan Ator wrote:
I have a text file with the following format:
TO name
SUBJECT stuff
MESSAGE
message text
message text
message text
snip
If you're sure the format is exactly that, then ...
$pat=array(
'SUBJECT',
'MESSAGE',
);
$marker='FOO';
I have a text file with the following format:
TO name
SUBJECT stuff
MESSAGE
message text
message text
message text
I need to be able to assign a variable to the data like so:
$to = everything to the left of TO;
$subject = everything to the left of SUBJECT;
$message = everything to the left of
This isn't tested, but should work :)
//
$to = '';
$subject = '';
$message = '';
$matches = array();
$data = file( $file );
foreach( $data as $id = $line )
{
if( ereg( '^TO(.*)$', $line, $matches ) )
{
$to = trim( $matches[1] );
the same thing over and over if
there is a way to avoid it. :)
sa
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 12:05 PM
To: Susan Ator
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How do I do this PERL in PHP?
This isn't tested
--- Susan Ator [EMAIL PROTECTED] wrote:
It works beautifully. My only question is there a way to pass a
variable to the ereg? In other words:
if( ereg( '^TO(.*)$', $line, $matches ) )
would become:
if( ereg( '^$var(.*)$', $line, $matches ) )
I've tried doing eval but that was
Cummings [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 12:05 PM
To: Susan Ator
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How do I do this PERL in PHP?
This isn't tested, but should work :)
//
$to = '';
$subject
Thank y'all so much for all your help.
sa
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 2:30 PM
To: Susan Ator
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] How do I do this PERL in PHP?
The following will do variable matching like you
I was wondering.
http://www.php.net/date
gives me/redirects to:
http://www.php.net/manual/en/function.date.php
How do they do that?
What $_post[??] is that? Or is it a sevrer (Apache, I suppose?) thing?
--
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Sun, 17 Aug 2003 23:13:24 -0400, you wrote:
I was wondering.
http://www.php.net/date
gives me/redirects to:
http://www.php.net/manual/en/function.date.php
How do they do that?
What $_post[??] is that? Or is it a sevrer (Apache, I suppose?) thing?
I don't know how php.net does it, but I know
I've got the following possible (example) strings:
[hi] there, this is me [HI] there, this is me
[ho] there, that is you [HO] there, that is you
[hey] there, where are you [HEY] there, where are you
and so on. I'm trying to come up with a regex that will
find the capitalized text (only)
This is sharp.
http://php.net/fopen
actually bring up:
http://www.php.net/manual/en/function.fopen.php
Is there any documentation on how they do that?
Urb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
So sprach »Urb LeJeune« am 2001-09-22 um 10:10:21 -0400 :
Is there any documentation on how they do that?
I suppose, they're using Apache's mod_rewrite which transforms the URL
(php.net/fopen) to the search form
(manual-lookup.php?lang=enfunction=fopen) if the part after the / is
not otherwise
reloading you'll need to
use javascript or similar evil measures...
I want to do it in pure php, how do I do this.
I tried it in javascripts but I could not get javascript to pass the
results back to php. My knowledge is limited
TIA
Adrian
-BEGIN PGP SIGNATURE-
Version
want to do this with pure php you'll need to reload the page after
the user selects the country from the dropdownbox, to get the webbrowser
to switch the cities in the city-dropdown w/o reloading you'll need to
use javascript or similar evil measures...
I want to do it in pure php, how
Hi,
I have the following script. What I want is that when I select the
country the corresponding cities should only be listed in the second
dropdown box. Can some one guide me. Right below is my table
structure.
$searchStmt = select name from airlines group by name order by name ;
On Mon, Apr 23, 2001 at 04:59:49PM +0530, Adrian D'Costa produced this golden nugget:
Hi,
I have the following script. What I want is that when I select the
country the corresponding cities should only be listed in the second
dropdown box. Can some one guide me. Right below is my table
Ok here is the deal.
I have a Linux server running PHP4 and MySQL and a directory full of images.
The images that are currently being used should be listed in a table (members) in a
column titled "pic1". What is the best way to pull the file names of the files and
check them against the
code snippets to achieve this.
hope that helps
best regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
- Original Message -
From: "Kenneth R Zink II" [EMAIL PROTECTED]
To: "PHP" [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 11:30 PM
Subject: [P
Hello,
I am still new to PHP but so far, I am getting things sorted reasonably ok
with some great from this group and other sites.
I have a MySql Database, that is working great, but when my results are
returned there is alot of information.
How do you display say only 15 results when doing a
PHPBuilder.com has an article on this:
http://www.phpbuilder.com/columns/rod2221.php3
--david
-Original Message-
From: Sefton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 25 January 2001 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How do you do this?
Hello,
I am
I have a big string. How can I do to find some text inside and modify that
text? I was thinking about ereg_replace(). But it is capable to handle big
chuncks of text? If yes, it will notbe too heavy for theserver? Any other
ideas?
Thank you,
Rom
--
PHP General Mailing List
?
if (ereg !=("^[0-9]+[.]?[0-9]*$", $val1)) {
header("Location:http://localhost/calculate_form.html");
exit;
But the script will attempt to perform calculations on non numeric
fields and
I also want it to return the form if anyone puts in a non numeric value.
I think I
37 matches
Mail list logo