NYCPHP Meetup

NYPHP.org

[nycphp-talk] Search function

Joseph Crawford codebowl at gmail.com
Fri Sep 19 18:24:13 EDT 2008


John,

 From my understanding this was not something she wanted for site  
users, I thought she was searching for a string.

If you are going to deploy this to users then you don't want to use  
either method we spoke about and use John's suggestion and use Google  
Site Search

On Sep 19, 2008, at 6:17 PM, John Campbell wrote:

> On Fri, Sep 19, 2008 at 6:07 PM, (Margaret) Michele Waldman
> <mmwaldman at optonline.net> wrote:
>> Would instr get_file_contents be too slow?
>
> This is a really bad idea in general... Is there a reason Google's
> site search won't work?
>
> If you do something like exec(grep), make sure you know how to escape
> everything properly.  It is possible someone could wreck the site with
> a specially crafted query.
>
> -John C.
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list