tags:

views:

30

answers:

3

Hey guys,

I have a lot of php code and I'm going through it right now (500+ files). I was hoping to find a program that would let me easily search through the files to see which files contain a specific variable I am editing. Kind of like a super edit -> find from notepad++. Anyone have any suggestions?

Best, Pavan

+2  A: 

One word. ack.

Chetan
I was introduced to ack ~6 months ago - not sure how I ever lived without it. (Actually I do know: with a cheap ack-wannabe Perl script I've been toting around for 10 years) Since then I haven't met a serious developer who was shown ack and didn't embrace it.
beamrider9
@Chetan thanks for mentioning it man. I appreciate it. Cool.
Pavan Katepalli
@beamrider9 Did you find it better than the find in files feature of notepad++?
Pavan Katepalli
@Pavan I don't know that app, sorry. My text editor of choice has a "find in files" also, but ack is a command line tool, which I find generally more useful in situations like this.
beamrider9
A: 

You can use a PHP ide such as NetBeans or your alternative is if you want to stick with notepad++ you can the Find in files which is located in the last tab when you hit CTRL+F

using NetBeans IDE you can lay your project out into a really decent code profiler and be able to see what your code is doing from a visual prospective.

RobertPitt
Thanks dude. I just checked out the find in files thing and it rocks. Wish it did it right on the server, but I shouldn't be editing on the server anyway.
Pavan Katepalli
A: 

You can also try Agent Ransack

NAVEED
Checking it out now. Thanks NAVEED!
Pavan Katepalli