Re: [PHP] Searching IDE.

2012-06-13 Thread David Arroyo
Hi folks, Many thanks for all! kind regards; On Wed, Jun 13, 2012 at 4:04 PM, Bastien Koert wrote: > On Wed, Jun 13, 2012 at 9:23 AM, Marc Guay wrote: >> I've used both Netbeans and Aptana w/ WinXP over the past few years >> and of the two I would recommend Aptana.  Netbeans was crippling slow

Re: [PHP] Searching IDE.

2012-06-13 Thread Bastien Koert
On Wed, Jun 13, 2012 at 9:23 AM, Marc Guay wrote: > I've used both Netbeans and Aptana w/ WinXP over the past few years > and of the two I would recommend Aptana.  Netbeans was crippling slow > and Aptana often gets it's workspace corrupted, which makes both of > them crappy (yet free!), but for d

Re: [PHP] Searching IDE.

2012-06-13 Thread Marc Guay
I've used both Netbeans and Aptana w/ WinXP over the past few years and of the two I would recommend Aptana. Netbeans was crippling slow and Aptana often gets it's workspace corrupted, which makes both of them crappy (yet free!), but for day to day use when they're not failing entirely, Aptana is

Re: [PHP] Searching IDE.

2012-06-13 Thread Curtis Maurand
Simon Dániel wrote: > Hi, > > Although it's not an IDE, it is full of very useful developer tools: Kate > > > 2012/6/13 David Arroyo > >> Hi Folks, >> >> I am searching an IDE for php and web development, my options are >> Aptana or Eclipse+PDT. >> What is your opinion? I've seen these arti

Re: [PHP] Searching IDE.

2012-06-13 Thread Simon Dániel
Hi, Although it's not an IDE, it is full of very useful developer tools: Kate 2012/6/13 David Arroyo > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. > What is your opinion? > > Thanks. > Regards. > > -- > > -- > PHP General Mailing Lis

Re: [PHP] Searching IDE.

2012-06-13 Thread Simon Schick
Hi, There was a discussion about that on Google+ ... IDEs mentioned there: __Free * Eclipse PDT (5x) * Aptana - based on Eclipse but not using PDT for PHP (2x) * Netbeans (12x) * VIM (6x) * KDevelop (1x) * gedit (3x) __NonFree * Sublime Text 2 (6x) - USD $59 * PhpStorm (7x) - €94 personal, €18

Re: [PHP] Searching IDE.

2012-06-13 Thread Lester Caine
David Arroyo wrote: I am searching an IDE for php and web development, my options are Aptana or Eclipse+PDT. What is your opinion? I'm using Eclipse with PHPEclipse but PDT is probably just as good nowadays. PHPEclipse needs a few updates to handle some of the 'new features' in PHP. The adva

Re: [PHP] Searching IDE.

2012-06-13 Thread David Arroyo
I would like free, no pay a license. On Wed, Jun 13, 2012 at 11:51 AM, David Arroyo wrote: > Sebastian, I would like free, no pay a license. > Thanks for you opinion. > > On Wed, Jun 13, 2012 at 11:33 AM, Sebastian Krebs > wrote: >> Hi, >> >> 2012/6/13 David Arroyo >> >>> Hi Folks, >>> >>> I a

Re: [PHP] Searching IDE.

2012-06-13 Thread Louis Huppenbauer
Hi there, 2012/6/13 David Arroyo > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. > What is your opinion? > > Thanks. > Regards. > > notepad++ or netbeans. And although I haven't tried it yet, I heard the the Sublime Text Editor 2 is grea

Re: [PHP] Searching IDE.

2012-06-13 Thread Sebastian Krebs
Hi, 2012/6/13 David Arroyo > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. > What is your opinion? > PhpStorm > > Thanks. > Regards. > > -- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php

Re: [PHP] Searching IDE.

2012-06-13 Thread Sharl Jimh Tsin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012年06月13日 17:11, David Arroyo wrote: > Hi Folks, > > I am searching an IDE for php and web development, my options are > Aptana or Eclipse+PDT. What is your opinion? > > Thanks. Regards. > > -- > NetBeans IDE. - -- Best regards, Sharl.Jimh.

[PHP] Searching IDE.

2012-06-13 Thread David Arroyo
Hi Folks, I am searching an IDE for php and web development, my options are Aptana or Eclipse+PDT. What is your opinion? Thanks. Regards. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] searching for application like Google Doc

2010-10-15 Thread Tommy Pham
> -Original Message- > From: Sharl.Jimh.Tsin [mailto:amoiz.sh...@gmail.com] > Sent: Thursday, October 14, 2010 9:16 PM > To: Bob McConnell > Cc: ??; php-general@lists.php.net > Subject: Re: [PHP] searching for application like Google Doc > > Are you looking for a o

Re: [PHP] searching for application like Google Doc

2010-10-14 Thread Sharl.Jimh.Tsin
Are you looking for a open-source project likes it? searching it via Google with "php"、"office doc"、"open source" key words may help you. Best regards, Sharl.Jimh.Tsin (From China) 2010/10/14 Bob McConnell : > From: ?? > >> Is there any application like Google Doc(here I mean the spreadsheet).

RE: [PHP] searching for application like Google Doc

2010-10-14 Thread Bob McConnell
From: ?? > Is there any application like Google Doc(here I mean the spreadsheet). What is your conception of "like"? Have you looked at OpenOffice? Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] searching for application like Google Doc

2010-10-14 Thread 肖晗
Is there any application like Google Doc(here I mean the spreadsheet). thanks

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Tommy Pham
- Original Message > From: Paul M Foster > To: php-general@lists.php.net > Sent: Friday, September 4, 2009 9:15:08 PM > Subject: Re: [PHP] Searching on AlphaNumeric Content Only > > On Fri, Sep 04, 2009 at 08:15:41PM -0400, Robert Cummings wrote: > > > Paul

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Paul M Foster
On Fri, Sep 04, 2009 at 08:15:41PM -0400, Robert Cummings wrote: > Paul M Foster wrote: >> On Fri, Sep 04, 2009 at 04:22:18PM -0400, Eddie Drapkin wrote: >> >>> On Fri, Sep 4, 2009 at 12:02 PM, Lupus >>> Michaelis wrote: >> >>> if you're on shared hosting (but then again I am of the opinion >>> th

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Robert Cummings
Paul M Foster wrote: On Fri, Sep 04, 2009 at 04:22:18PM -0400, Eddie Drapkin wrote: On Fri, Sep 4, 2009 at 12:02 PM, Lupus Michaelis wrote: if you're on shared hosting (but then again I am of the opinion that those who choose to run with shared hosting dig their own graves in more ways than

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Paul M Foster
On Fri, Sep 04, 2009 at 04:22:18PM -0400, Eddie Drapkin wrote: > On Fri, Sep 4, 2009 at 12:02 PM, Lupus > Michaelis wrote: > if you're on shared hosting (but then again I am of the opinion > that those who choose to run with shared hosting dig their own graves > in more ways than one). Any time

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Tommy Pham
- Original Message > From: Robert Cummings > To: Eddie Drapkin > Cc: Lupus Michaelis ; php-general@lists.php.net > Sent: Friday, September 4, 2009 1:36:08 PM > Subject: Re: [PHP] Searching on AlphaNumeric Content Only > > Eddie Drapkin wrote: > > On Fri, Sep

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Robert Cummings
Eddie Drapkin wrote: On Fri, Sep 4, 2009 at 12:02 PM, Lupus Michaelis wrote: Ashley Sheridan a écrit : You'll have far greater performance issues if you retrieve all those records and attempt to do the same thing inside of PHP... It's why I speak about « avoiding » and not « bannishing ». Li

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Eddie Drapkin
On Fri, Sep 4, 2009 at 12:02 PM, Lupus Michaelis wrote: > Ashley Sheridan a écrit : > >> You'll have far greater performance issues if you retrieve all those >> records and attempt to do the same thing inside of PHP... > >  It's why I speak about « avoiding » and not « bannishing ». Like can be > u

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Lupus Michaelis
Ashley Sheridan a écrit : You'll have far greater performance issues if you retrieve all those records and attempt to do the same thing inside of PHP... It's why I speak about « avoiding » and not « bannishing ». Like can be usefull, I used to use it. But it is not the a good answer to all

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Ashley Sheridan
On Fri, 2009-09-04 at 17:00 +0200, Lupus Michaelis wrote: > Ashley Sheridan a écrit : > > What's wrong with using the wildcards that are built into most SQL > > variants? > >Performance issues. Like is an operator to avoid when possible. > > -- > Mickaël Wolff aka Lupus Michaelis > http://lu

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-04 Thread Lupus Michaelis
Ashley Sheridan a écrit : What's wrong with using the wildcards that are built into most SQL variants? Performance issues. Like is an operator to avoid when possible. -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> > stripping, stemming, spelling corrections ? >  ... uhm, that's probably why they invented regular expressions, isn't it? > > As I said, at the end of the day, this will be a manual slow, potentially > wrong implementation of what we already have and use on daily basis. If you've got a regular

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
stripping, stemming, spelling corrections ? ... uhm, that's probably why they invented regular expressions, isn't it? As I said, at the end of the day, this will be a manual slow, potentially wrong implementation of what we already have and use on daily basis. But obviously, everybody is free

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Paul M Foster
On Thu, Sep 03, 2009 at 12:12:40PM -0700, sono...@fannullone.us wrote: > Thanks to everyone who has responded. After reading everyone's > response, I think I have a very simple way to solve my "problem". > > Using my original example, if someone wants to find item # > 4D-2448-7PS, no

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Tommy Pham
- Original Message > From: "sono...@fannullone.us" > To: PHP General List > Sent: Thursday, September 3, 2009 12:12:40 PM > Subject: Re: [PHP] Searching on AlphaNumeric Content Only > > Thanks to everyone who has responded. After reading everyone's

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Eddie Drapkin
On Thu, Sep 3, 2009 at 3:17 PM, Ashley Sheridan wrote: > On Thu, 2009-09-03 at 12:12 -0700, sono...@fannullone.us wrote: >>       Thanks to everyone who has responded.  After reading everyone's >> response, I think I have a very simple way to solve my "problem". >> >>       Using my original examp

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ashley Sheridan
On Thu, 2009-09-03 at 12:12 -0700, sono...@fannullone.us wrote: > Thanks to everyone who has responded. After reading everyone's > response, I think I have a very simple way to solve my "problem". > > Using my original example, if someone wants to find item # > 4D-2448-7PS, no mat

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread sono-io
Thanks to everyone who has responded. After reading everyone's response, I think I have a very simple way to solve my "problem". Using my original example, if someone wants to find item # 4D-2448-7PS, no matter what they type in, I'll take the input, strip out all non-alphanumeric charac

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
> Even if the REGEXP has to change with every query? Ben, it does not matter, this is not a PHP problem but a DB structure/select/insert/update problem. Whatever REGEXP you use, a REGEXP is what you need to solve this problem, certainly not a PHP loop over each row with operations for each row

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> What's wrong with using the wildcards that are built into most SQL > variants? > > SELECT * FROM table WHERE item_id LIKE '%#abcdef' > > Will select all records where the item_id field ends in '#abcdef' That works if you know the user is always going to enter the last 7 characters of the product

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> Excuse me? Somebody suggested a PHP loop to solve a query problem and you are > saying that REGEXP should not be used? > MySQL caches queries and 100 SELECT with a REGEXP will cost zero after the > first one if nothing changed inside the table. Even if the REGEXP has to change with every query

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
> Indeed you could do it via a regexp, but that uses up quite some memory. > Every time you do a SELECT. You can simply add a table column with the > stripped value and let the table update itself (with an ON UPDATE ON > INSERT trigger, which takes the input value for the itemID and strips it

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
Which DB? If it is MySQL, as example, you can simply use REGEXP syntax "^[a-zA-Z0-9]+$" via SELECT Regards > From: sono...@fannullone.us > To: php-general@lists.php.net > Date: Wed, 2 Sep 2009 20:47:15 -0700 > Subject: [PHP] Searching on AlphaNumeric Content Only >

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ashley Sheridan
On Wed, 2009-09-02 at 21:30 -0700, Ben Dunlap wrote: > >Is there is a way to search only for the alphanumeric content of > > field in a db? I have an itemID field that contains item #'s that include > > dashes, forward slashes, etc, and I want people to be able to search for an > > item #

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-02 Thread Ben Dunlap
>        Is there is a way to search only for the alphanumeric content of > field in a db?  I have an itemID field that contains item #'s that include > dashes, forward slashes, etc, and I want people to be able to search for an > item # even if they don't enter the punctuation exactly. Not sure i

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-02 Thread German Geek
Hi, It's definitely possible to do when you do it in PHP, but not sure about on the database side. You could read all records into memory and then iterate over it with something like: $toSearch = "4D24487PS" $charsToIgnore = array('-','+',...); foreach ($items as $k=>$item) { $itemVal = str_re

[PHP] Searching on AlphaNumeric Content Only

2009-09-02 Thread sono-io
Is there is a way to search only for the alphanumeric content of field in a db? I have an itemID field that contains item #'s that include dashes, forward slashes, etc, and I want people to be able to search for an item # even if they don't enter the punctuation exactly. Here's an exampl

Re: [PHP] Searching in a long text

2009-01-03 Thread Andrew Ballard
On Sat, Jan 3, 2009 at 4:28 AM, Yeti wrote: > What if the whole text has only 1 line? > I would worry more (though probably not much) about the fringe cases where a match spans across lines (or pages) such that it would either prevent a qualifying match from being returned at all, or a highly rel

Re[2]: [PHP] Searching in a long text

2009-01-03 Thread Vicente
Richard wrote: > You could look into using Zend_Search_Lucene, which is part of the > Zend framework. It's file based and so doesn't require the use of > MySQL. Might make it slightly more portable if that's a concern. It > will be a little more work than simply using MySQL, but it would be > wort

Re: [PHP] Searching in a long text

2009-01-03 Thread Richard Heyes
> ... You could look into using Zend_Search_Lucene, which is part of the Zend framework. It's file based and so doesn't require the use of MySQL. Might make it slightly more portable if that's a concern. It will be a little more work than simply using MySQL, but it would be worth it I think. --

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 01:28 -0800, Yeti wrote: > What if the whole text has only 1 line? What if? Shouldn't matter. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Searching in a long text

2009-01-03 Thread Robert Cummings
On Sat, 2009-01-03 at 09:26 +0100, Vicente wrote: > Hi all, > > I'm implementing a search tool to find phrases inside a book. > Users will search for some word, then the engine will returns > the 3 or 4 lines containing that word, and giving also the book page > number. > > I have the book in pl

Re: [PHP] Searching in a long text

2009-01-03 Thread Yeti
What if the whole text has only 1 line? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Searching in a long text

2009-01-03 Thread Vicente
Hi all, I'm implementing a search tool to find phrases inside a book. Users will search for some word, then the engine will returns the 3 or 4 lines containing that word, and giving also the book page number. I have the book in plain text and the doubt is about different approaches in order to b

Re: [PHP] Searching MySQL with Japanese chars

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 8:22 AM, robert mena <[EMAIL PROTECTED]> wrote: > Hi, > I am developing my first application that will have to handle with japanese > data stored in a MySQL database. After digging a while it seems that I'd > have to set all pieces (from the charset of the apache, to the e

[PHP] Searching MySQL with Japanese chars

2008-10-17 Thread robert mena
Hi, I am developing my first application that will have to handle with japanese data stored in a MySQL database. After digging a while it seems that I'd have to set all pieces (from the charset of the apache, to the encoding of the templates and database fields) set to UTF-8. I'd like to know if

Re: [PHP] searching by tags....

2008-10-16 Thread Philip Thompson
On Oct 14, 2008, at 6:17 PM, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ A

Re: [PHP] searching by tags....

2008-10-16 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Wast

Re: [PHP] searching by tags....

2008-10-16 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: > > improvement if I went for static URLs on the site, but I don't > have any > evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. >>> choices: >>

Re: [PHP] searching by tags....

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: > >>> > >>> improvement if I went for static URLs on the site, but I don't > >>> have any > >>> evidence for that, and I'm willing to admit it. > >> I'd rebuff this but it would feel like Im feeding a troll. > > > > choices: > > 1 - Waste some ti

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to prove this 2 - Explain how I know this and show the

Re: [PHP] searching by tags....

2008-10-15 Thread Govinda
improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to prove this 2 - Explain how I know this and show the historical ev

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: >> Jochem Maas wrote: >>> Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: >> On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: >>> Nathan

Re: [PHP] searching by tags....

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: > Jochem Maas wrote: > > Ashley Sheridan schreef: > >> On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: > >>> Ashley Sheridan wrote: > On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: > > Nathan Rixham schreef: > >> As

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: >> Ashley Sheridan wrote: >>> On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: > Ashley Sheridan wrote: >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: >>> quite a few

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: > >> Nathan Rixham schreef: > >>> Ashley Sheridan wrote: > On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > > quite a few sites seem to have a very n

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: > Nathan Rixham schreef: > > Ashley Sheridan wrote: > >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > >>> quite a few sites seem to have a very neat way of implementing this > >>> with (url rewriting?) something like > >>> http://sitename/

Re: [PHP] searching by tags....

2008-10-14 Thread Jochem Maas
Nathan Rixham schreef: > Ashley Sheridan wrote: >> On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: >>> quite a few sites seem to have a very neat way of implementing this >>> with (url rewriting?) something like >>> http://sitename/blog/tags/tag-comes-here/ > >> As for getting those search terms,

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 23:17 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > >> quite a few sites seem to have a very neat way of implementing this with > >> (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ > > >

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ As for getting those search terms, well a link in a page can contain GET

Re: [PHP] searching by tags....

2008-10-14 Thread Ashley Sheridan
On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: > Hey, > > this the first time I am actually working with "tags" but it seems quite > popular and am adding it on a clients requests. > > By tags I mean something like wordpress' implementation of it, for example > when an author writes an articl

[PHP] searching by tags....

2008-10-14 Thread Ryan S
Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies, new borns, cribs, na

Re: [PHP] searching in multidimensional array for a date

2008-01-14 Thread Richard Lynch
On Sat, January 12, 2008 12:29 pm, [EMAIL PROTECTED] wrote: > Hello to everybody, > > I am using the following function in order to search in > multi-dimensional array, as per note added on > http://it.php.net/array_search, > [code] > function array_search_recursive($data0, $FinRecSet, $a=0, > $no

[PHP] searching in multidimensional array for a date

2008-01-12 Thread [EMAIL PROTECTED]
Hello to everybody, I am using the following function in order to search in multi-dimensional array, as per note added on http://it.php.net/array_search, [code] function array_search_recursive($data0, $FinRecSet, $a=0, $nodes_temp=array()){ global $nodes_found; $a++; foreach ($FinRecSet as $

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread tedd
At 4:01 PM -0400 9/11/07, Jason Pruim wrote: Son of a Bitch... Soon as I closed that down at line 265 the search now isn't redirecting to edit.php Do you debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I coul

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, brian <[EMAIL PROTECTED]> wrote: > e: (my personal opinion) Using echo() to spit out HTML will lead to > *much* heartache and gnashing of teeth. Put a closing PHP tag ("?>") in > there and let the parser spit out the markup without echo(). i think this is quite opposite. i prefer echo'

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread brian
Jay Blanchard wrote: So Jason you learned three valuable lessons today. a. plan your code (use paper and pencil or something like it) b. always account for security c. comment properly I'll add two more: d: Check the source that your script outputs. Send it to the W3C validator (WebDevelop

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Son of a Bitch... Soon as I closed that down at line 265 the search now isn't redirecting to edit.php Do you debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I couldn't see it... [/snip] Debugged by

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 4:02 PM, Jay Blanchard wrote: [snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you walk it throug

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:59 PM, Jay Blanchard wrote: [snip] Edit is the ONLY reference to edit.php in the entire code of that page. [/snip] No it isn't. edit.php shows up a couple of times, not the least of which is row 218; echo ""; Do you know where the closing form tag is for this? Line

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you walk it through with paper and pencil (or notepad even)? -- PHP Genera

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:58 PM, Robert Cummings wrote: On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I took a look and now I can't get m

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] > Edit is the > ONLY reference to edit.php in the entire code of that page. [/snip] No it isn't. edit.php shows up a couple of times, not the least of which is row 218; echo ""; Do you know where the closing form tag is for this? Line 288. If you look at your source with the search form i

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: > It redirects before any output of $search is visible. > I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone > who wants to see the code... I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! M

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: > > Total length is 293 lines. > > It redirects before any output of $search is visible. > I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone > who wants to see the code... > > I know it repeats it's self, but I couldn't fig

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Total length is 293 lines. It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I know it repeats it's self, but I couldn't figure out how to get it to log in and stay logged in right with

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 15:20 -0400, Jason Pruim wrote: > > echo "Export to Excel A>LogoutAdd > Record"; > echo "Total Records: $num_rows"; While you're trying to clean up your security approach you might also spend a little time cleaning up your HTML. Your lack of a consistent discipline for tag

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:37 PM, Jay Blanchard wrote: [snip] Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few lines above that there is a reference to edit.php and here is the code for it: Sorry for the long cut/paste, but I thought it was important to

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few lines above that there is a reference to edit.php and here is the code for it: Sorry for the long cut/paste, but I thought it was important to try and provide it in context, and the line whe

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:59 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data b

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:57 PM, Jay Blanchard wrote: There is no redirection to edit.php? You're calling PHP_SELF so it should not go anywhere else. Is there any mention of edit.php in the code? Correct. PHP_SELF refers to index.php which is the page that the search is happening on. a few l

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] The problem is there's not... At least there's not supposed to be. The end result that I want is for the search results to end up on the same page if possible... edit.php is a script I use for editing records. Maybe I should just do it on a separate page... It might be easier for disp

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Stut
Jason Pruim wrote: On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only avai

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread mike
On 9/11/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' > or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% > %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is > correct except for it being empt

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:32 PM, Jay Blanchard wrote: [snip] echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being emp

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] echo $qstring; produces: SELECT * FROM current WHERE FName like '%%' or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '% %' or State like '%%' or Zip like '%%' or XCode like '%%' Which is correct except for it being empty. I tried to echo $search, but since it redire

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 1:58 PM, Jay Blanchard wrote: [snip] I fixed that but the problem still remains... When I preform the search I get redirected from index.php to edit.php and can't see where that would happen. [/snip] echo $qstring; $search is not NULL because $search is equal to $_GET["sea

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only available after logging

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Stut
Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only available after logging into the system. No one who isn't logge

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jay Blanchard
[snip] I fixed that but the problem still remains... When I preform the search I get redirected from index.php to edit.php and can't see where that would happen. [/snip] echo $qstring; $search is not NULL because $search is equal to $_GET["search"]. $search may be empty though. -- PHP Genera

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: From: Jason Pruim <[EMAIL PROTECTED]> Here is the relevant code (I think...) $search = $_GET["search"]; $self = $_SERVER['PHP_SELF']; $qstring = "SELECT * FROM current WHERE FName like '%$qstring%' or LName like '%$qstring%' or Add1 like '%$q

RE: [PHP] SEARCHING for an answer...

2007-09-11 Thread Instruct ICC
From: Jason Pruim <[EMAIL PROTECTED]> Here is the relevant code (I think...) $search = $_GET["search"]; $self = $_SERVER['PHP_SELF']; $qstring = "SELECT * FROM current WHERE FName like '%$qstring%' or LName like '%$qstring%' or Add1 like '%$qstring%' or Add2 like '% $qstring%' or City like '%$

  1   2   3   >