Re: [PHP] Search question ..

2003-07-23 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > From: "Curt Zirzow" <[EMAIL PROTECTED]> > > * Thus wrote James Hatridge ([EMAIL PROTECTED]): > > > > preg_match('#\(.*)\#im', $text, $matches): > > I don't think you have to escape the < and > characters, do you? Also, > what's the 'm' modifie

Re: [PHP] Search question ..

2003-07-23 Thread CPT John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > * Thus wrote James Hatridge ([EMAIL PROTECTED]): > > I've got a search page written for my web site. I can find the html page I > > want by keyword. Now I need to get the title of that page in to a variable. > > In other words I have a file name, for exampl

Re: [PHP] Search question ..

2003-07-23 Thread Curt Zirzow
* Thus wrote James Hatridge ([EMAIL PROTECTED]): > Hi all.. > > I've got a search page written for my web site. I can find the html page I > want by keyword. Now I need to get the title of that page in to a variable. > In other words I have a file name, for example Summerbulletin.html. I now >

[PHP] Search question ..

2003-07-23 Thread James Hatridge
Hi all.. I've got a search page written for my web site. I can find the html page I want by keyword. Now I need to get the title of that page in to a variable. In other words I have a file name, for example Summerbulletin.html. I now need to get the line " Summer 2003 " in to a variable. How do

RE: [PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
On Wed, 27 Nov 2002 [EMAIL PROTECTED] wrote: |You could try any number of PHP functions, but the best ones would be |strchr/strstr/stristr (for locating the first occurrence of the string), |strpos (find the position of the first occurrence), or strrchr (to find the |last). | I was just using som

RE: [PHP] search question

2002-11-27 Thread Liam . Gibbs
<> You could try any number of PHP functions, but the best ones would be strchr/strstr/stristr (for locating the first occurrence of the string), strpos (find the position of the first occurrence), or strrchr (to find the last). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
Hello, I'm wondering what you all think the best way to "search" for a string is. I guess its more of a matching (regex I'm thinking) but basically what I want is this.. I'm outputting some rows of data. If one of the columns of that row contain a string of text, either beginning, end, or middle,