NYCPHP Meetup

NYPHP.org

[nycphp-talk] Search function

(Margaret) Michele Waldman mmwaldman at optonline.net
Fri Sep 19 18:08:05 EDT 2008


Also, if someone searches for html, should I not return all html docs?

 

What's the rule here?

 

Michele

 

  _____  

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of (Margaret) Michele Waldman
Sent: Friday, September 19, 2008 6:07 PM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] Search function

 

Would instr get_file_contents be too slow?

 

Michele

 

  _____  

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Joseph Crawford
Sent: Friday, September 19, 2008 5:52 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Search function

 

If you have SSH access you could use grep, if not write a php script that
will exec() the grep command.  This is providing the hosts security allows
for exec()

 

On Sep 19, 2008, at 5:49 PM, (Margaret) Michele Waldman wrote:

 

Does anyone know of a function or code I could use to quickly search my site
for a document?

 

I was thinking I could write a php function to open all of the files and
search for a specific string.

 

But, I'm guessing it's already been done with a better implementation.

 

Thanks,

 

Michele

_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080919/e26e925d/attachment.html>


More information about the talk mailing list