Re: [PHP] Matching

2009-01-31 Thread Nathan Rixham
Eric Butera wrote: On Sat, Jan 31, 2009 at 9:33 AM, Ashley Sheridan wrote: On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan wrote: On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott wrote:

Re: [PHP] Matching

2009-01-31 Thread Eric Butera
On Sat, Jan 31, 2009 at 9:33 AM, Ashley Sheridan wrote: > On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: >> On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan >> wrote: >> > On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: >> >> On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott >> >> wrote

Re: [PHP] Matching

2009-01-31 Thread Ashley Sheridan
On Sat, 2009-01-31 at 08:38 -0500, Eric Butera wrote: > On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan > wrote: > > On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: > >> On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott > >> wrote: > >> > How do I determine the value oftx from this strin

Re: [PHP] Matching

2009-01-31 Thread Eric Butera
On Sat, Jan 31, 2009 at 7:32 AM, Ashley Sheridan wrote: > On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: >> On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott >> wrote: >> > How do I determine the value oftx from this string? >> > >> > >> > page/words_from_the_well_checkout/?tx=8UM53005HH

Re: [PHP] Matching

2009-01-31 Thread Ashley Sheridan
On Fri, 2009-01-30 at 21:33 -0500, Eric Butera wrote: > On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott > wrote: > > How do I determine the value oftx from this string? > > > > > > page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01 > > > > My desired answer is: 8UM53

RE: [PHP] Matching

2009-01-30 Thread David Swenson
>How do I determine the value of tx from this string? > > >page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01 > >My desired answer is: 8UM53005HH344951T > >I am trying to capture the serial number which follows tx= and ends >immediately before the & >Ron I'm sure Eric g

Re: [PHP] Matching

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott wrote: > How do I determine the value oftx from this string? > > > page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01 > > My desired answer is: 8UM53005HH344951T > > I am trying to capture the serial number which follows

[PHP] Matching

2009-01-30 Thread Ron Piggott
How do I determine the value oftx from this string? page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01 My desired answer is: 8UM53005HH344951T I am trying to capture the serial number which follows tx= and ends immediately before the & Ron

[PHP] Matching Proper Versions Of PHP and MySQL

2007-03-05 Thread revDAVE
Hello All, I'm a newbie. My server just upgraded to PHP version 5.1.2 from php 4.3.11 MySQL currently is v 4.0.27 Q: What is the oldest - best/safest version of mySQL to use with PHP version 5.1.2.? The reason I mentioned the oldest - is because, for legacy clients, I would like to do the mini

Re: [PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Holger Blasum
Hello Ryan, On 03-03, Ryan A wrote: > test:dGRkPurkuWmW2 (test:test) > test1:dGlAW3zdxeAG2 (test1:test1) $php -r "print crypt('test',base64_encode('test'));"; -> dGRkPurkuWmW2 $php -r "print crypt('test1',base64_encode('test1'));"; -> dGlAW3zdxeAG2 So compare the password string with the output

[PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Ryan A
Hey, I have a old htpasswd file with a lot of logins in this format: test:dGRkPurkuWmW2 (test:test) test1:dGlAW3zdxeAG2 (test1:test1) now I have a login form what takes a POST "user" and a POST "pw"... but if you look at my above first example login.. the username and pass are "test:test" but i

Re: [PHP] Matching numbers 1-100

2007-02-04 Thread Richard Lynch
On Sat, February 3, 2007 11:09 am, Wikus Moller wrote: > I want to know if anyone can help me with my code which matches a > number to a range e.g. 1-15 and echoes an image if the number is in > the range. > > The code would use the if statement and check if a variable for > example 5 matches the

Re: [PHP] Matching numbers 1-100

2007-02-03 Thread tedd
At 5:09 PM + 2/3/07, Wikus Moller wrote: Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-1

[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image. A

[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image. A

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Prathaban Mookiah
substr_count() should be more easy, but limited in functionality. Prathap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Matthew Fonda
Hello, http://us4.php.net/substr_count Regards, Matthew Fonda Russell P Jones wrote: Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Russell P Jones
Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Matching *exact* string?

2004-10-31 Thread Klaus Reimer
Nick Wilson wrote: How can I alter the above so that only *exact* matches are banned? Using ^ and $ to mark the begin and end of the line. So try this "/^$ip\$/" -- Bye, K (FidoNet: 2:240/2188.18) [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger [EMAIL PROTECTE

[PHP] Matching *exact* string?

2004-10-31 Thread Nick Wilson
hello all I am foreach()ing through an array of ip addresses in a 'ban script' and have the following php code: foreach($ips as $ip) { preg_match("/$ip/", $_SERVER[REMOTE_ADDR]); $ban = TRUE; } This is great, but if 127.0.0 were in the ban list (for example) it would still produce a ban as i

RE: [PHP] matching search terms

2004-09-13 Thread Jay Blanchard
[snip] I am hoping that there is some internet resource [/snip] Which begs the question, have you STFW? http://www.google.com/search?q=search+function&hl=en&lr=&ie=UTF-8&start= 10&sa=N -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] matching search terms

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please let

[PHP] matching system - anyone seen any?

2004-08-22 Thread Kim Steinhaug
I wonder if anyone have come across a script/system that already has this feature, else I would need to do it all over again. The scenario is this : I want people to select the movies they have seen and rate them 1/10. Movies not available in the "polling" system they can add, and rate them. This

Re: [PHP] matching certain values

2003-09-18 Thread Louie Miranda
thanks for the reference. strpos will be good for my problem. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 4:11 PM Subject: Re: [PHP] matching certain values > On Thursday 18 September

Re: [PHP] matching certain values

2003-09-18 Thread Jason Wong
On Thursday 18 September 2003 15:55, Louie Miranda wrote: > Im trying to match some words on the value that i have impost on php. > But i dont know why it doesnt seem to catch some certain fields. > > if ($HTTP_USER_AGENT === 'MSIE ') > > I know something is wrong :( Did you *try* finding out what

[PHP] matching certain values

2003-09-18 Thread Louie Miranda
Im trying to match some words on the value that i have impost on php. But i dont know why it doesnt seem to catch some certain fields. if ($HTTP_USER_AGENT === 'MSIE ') I know something is wrong :( - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Matching titles from distinct data sources

2003-05-27 Thread Composite Design
Hello Does anyone know of an algorithm or program for matching pieces of text (such as film titles) that are conceptually the same, but which may be written/spelled differently? eg. I need something which will identify a (likely to be) the same: "The Matrix Reloaded" "Matrix Reloaded, The" "Matri

Re: [PHP] matching two form fields function?

2002-05-23 Thread Dennis Moore
Also make sure you trim() the input variables before your comparison... 2cents... /dkm - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 4:30 PM Subject: Re: [PHP] matching two form fields function

Re: [PHP] matching two form fields function?

2002-05-23 Thread Kevin Stone
- Original Message - From: "Jeff Field" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 2:09 PM Subject: [PHP] matching two form fields function? > I feel bad about asking a question like this, but I've spent quite a bit of > t

[PHP] matching two form fields function?

2002-05-23 Thread Jeff Field
I feel bad about asking a question like this, but I've spent quite a bit of time trying to track down what should be a simple answer and, no luck. Anyway... I'm trying to create a simple function that will match two form fields against each other, e.g. "Email" equals "Repeat Email". The followin

[PHP] matching user to tables

2002-01-17 Thread Gary
Hello All, I written a script(sessions) that authenticates a user and passes that information on to a menu. Then menu displays according to the users permission level. The thing works with several table joins ETC. What I need to do in the next step is to assign the menu and certain tables to

[PHP] Matching phrases in search engine

2002-01-11 Thread José Ignacio Franqueiro
Hi. I´m trying to develop a search engine where users could search not only individual words, but also phrases enclosed by "", but I´m having trouble to build the function to recognize each phrase and individual word from a variable sent with html form. Did anybody make something like this? Ca

Re: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread Mark
On Mon, 22 Oct 2001 22:09:56 -0700, Nick Richardson wrote: >Hey everyone, > >Anyone out there know how i could do this: > >I have a client who is an import car tuner. They would like to >feature the >cars they work on in their website. Instead of creating a new .html >or .php >file for every car

SV: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread anders nawroth
TECTED]> Skickat: den 23 oktober 2001 07:20 Ämne: RE: [PHP] Matching strings in a flat/text file? lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this:

Re: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Pavel Jartsev
Nick Richardson wrote: > > ... > > Example: I want to pass a string using the URL (blah.php?car=civic_si) then > search for ##civic_si in the text file, and print everything until it finds > ##end. So the text file will look like this: > > ##civic_si > This is my content, blah blah > ##end > >

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
0:20 PM To: [EMAIL PROTECTED]; Nick Richardson Subject: RE: [PHP] Matching strings in a flat/text file? lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1.

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Jack Dempsey
r from the first pos to the end (you'll need to add/subtract some strlen's to slice off the delimiters as well... jack -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 1:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Matching strings

[PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
Hey everyone, Anyone out there know how i could do this: I have a client who is an import car tuner. They would like to feature the cars they work on in their website. Instead of creating a new .html or .php file for every car they add to include the background setup, and the general content (

RE: [PHP] Matching Question

2001-08-04 Thread hassan el forkani
ok, if i understand you correctly, you're taking data from a form and want to check that it is not already in the database, right? then why don't you include the submitted vars in the query like this: $sql = "SELECT First_Name, Last_Name, Address FROM $table_name WHERE (Family_Position = 'H' or

RE: [PHP] Matching Question

2001-08-04 Thread Jeff Oien
Thank you. That worked and I'm sure will have made it work a lot faster later on when there is a lot of data in the database. Jeff Oien > On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) > wrote: > >After a sign up page I want to check if someone is already entered > >into a data

Re: [PHP] Matching Question

2001-08-04 Thread Mark Maggelet
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: >After a sign up page I want to check if someone is already entered >into a database. The First Name, Last Name and Address all have >to match exactly in order for it to be considered a duplicate. >However >this isn't doing wh

[PHP] Matching Question

2001-08-04 Thread Jeff Oien
After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I want. I get the Error produced if the Address matches but the name does

Re: [PHP] Matching irregular cases

2001-01-17 Thread Toby Butzon
> displayed, I want to change the search query so it stands out in the result > list. I'm just using... > ereg_replace($search_query, "$search_query", $row[6]); > ...at the moment, but it wont match results where the case doesn't match. Try eregi_replace... php.net/eregi_replace --Toby -- PH

RE: [PHP] Matching irregular cases

2001-01-17 Thread jalist
(/me smacks head) thanks, completely forgot about that. Steve -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 15:57 To: 'jalist'; [EMAIL PROTECTED] Subject: RE: [PHP] Matching irregular cases Steve, Try the ereg_replace()somthing

RE: [PHP] Matching irregular cases

2001-01-17 Thread Robert Collins
y, January 17, 2001 8:47 AM To: [EMAIL PROTECTED] Subject: [PHP] Matching irregular cases I think this'll be an easy one for you fellas... I'm writing a search function for my site. The code to search the mysql db's are in place and working but here's the problem. For any matc

[PHP] Matching irregular cases

2001-01-17 Thread jalist
I think this'll be an easy one for you fellas... I'm writing a search function for my site. The code to search the mysql db's are in place and working but here's the problem. For any matches that are displayed, I want to change the search query so it stands out in the result list. I'm just using..

[PHP] Matching specific HTML tags with a regex

2001-01-10 Thread Jason Murray
Hi folks, Seen this discussed on here a bit in the past, so I hope someone remembers and can help me sort of quickly before I go nuts, declare victory and move on to another problem :) My regular expression abilities are ... limited. This is what I'm trying to accomplish: An input buffer to a