RE: [PHP] How do I do count the occurrence of each word?

2012-08-20 Thread Ford, Mike
-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

Re: [PHP] How do I do count the occurrence of each word?

2012-08-19 Thread tamouse mailing lists
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 =

[PHP] How do I do count the occurrence of each word?

2012-08-18 Thread John Taylor-Johnston
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

Re: [PHP] How do I do count the occurrence of each word?

2012-08-18 Thread 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? $stripping = strip_tags($text); #get rid of html

Re: [PHP] How do I do count the occurrence of each word?

2012-08-18 Thread Marco Behnke
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?

Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Ivo F.A.C. Fokkema
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') {

Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Norbert Ehart
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 ===

Re: [PHP] How do you do the ? mark after a filename

2006-11-12 Thread Thomas Bonham
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

Re: [PHP] How do you do the ? mark after a filename

2006-11-12 Thread J R
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]

[PHP] How do you do the ? mark after a filename

2006-11-11 Thread Thomas Bonham
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/)

Re: [PHP] How do you do the ? mark after a filename

2006-11-11 Thread John Meyer
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

Re: [PHP] How do I do italics on a text string in an image?

2004-10-12 Thread Jason Wong
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,

Re: [PHP] How do I do italics on a text string in an image?

2004-10-12 Thread Brent Clements
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

[PHP] How do I do this select?

2004-01-11 Thread Chris W
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

RE: [PHP] How do I do this PERL in PHP?

2003-09-17 Thread SLanger
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

Re: [PHP] How do I do this PERL in PHP?

2003-09-17 Thread Don Read
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';

[PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
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

Re: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
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] );

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
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

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Chris Shiflett
--- 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

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
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

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
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

[PHP] How do they do that?

2003-08-17 Thread John Taylor-Johnston
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:

Re: [PHP] How do they do that?

2003-08-17 Thread David Otton
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

[PHP] How do I do this

2001-12-13 Thread Boget, Chris
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)

[PHP] How do they do that.

2001-09-22 Thread Urb LeJeune
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

Re: [PHP] How do they do that.

2001-09-22 Thread Alexander Skwar
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

Re: [PHP] how do I do this

2001-04-24 Thread Philip Olson
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

Re: [PHP] how do I do this

2001-04-24 Thread Adrian D'Costa
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

[PHP] how do I do this

2001-04-23 Thread Adrian D'Costa
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 ;

Re: [PHP] how do I do this

2001-04-23 Thread Andreas Landmark
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

[PHP] how do I do file maintenance with PHP?

2001-02-14 Thread Kenneth R Zink II
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

Re: [PHP] how do I do file maintenance with PHP?

2001-02-14 Thread Ankur Verma
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

[PHP] How do you do this?

2001-01-24 Thread Sefton
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

RE: [PHP] How do you do this?

2001-01-24 Thread David Harrison
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

[PHP] How do I do to update part of a string?

2001-01-15 Thread Romulo Roberto Pereira
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

Re: [PHP] how do I do this, please?

2001-01-15 Thread Richard Lynch
? 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