search file source code?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

xudzh
Forum Commoner
Posts: 48
Joined: Sat Feb 19, 2005 6:22 pm

search file source code?

Post by xudzh »

Hi,

I'm wondering if there's a free program that can search for source code with files, for example if I want to find "mysql_connect" in my script.

the window's build-in search would only search txt or doc files, and treats my phps as binary. :(

Let me know if anyone has good suggestions.

Thanks

xudzh
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Most editors have build in search capabilities of this, to be able to search through a directory for any instances..

From my knowledge:

Dreamweaver 6+
PHP Designer 2005
Zend Studio
Crimson Editor
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

M$ Notepad.

Also, windoze search should work. Just search for *.php as the filename and mysql_connect as the contents.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

foobar wrote:M$ Notepad.
Notepad can't search in files unless you open each one.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Grim... wrote:
foobar wrote:M$ Notepad.
Notepad can't search in files unless you open each one.
He never said that that wasn't what he wanted.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Exactly: it is what he wanted.

<edit>Surely there's no real need to quote me if my post is the one before yours?</edit>
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Grim... wrote:<edit>Surely there's no real need to quote me if my post is the one before yours?</edit>
Why not? :P

OK I'll shut up now...
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

That's not so bad, because at least you took the trouble to remove unrelevent paragraphs from the quote.

I have a thing about quotes recently :)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: search file source code?

Post by Weirdan »

xudzh wrote: I'm wondering if there's a free program that can search for source code with files, for example if I want to find "mysql_connect" in my script.
For large projects: http://phpxref.sourceforge.net/
xudzh
Forum Commoner
Posts: 48
Joined: Sat Feb 19, 2005 6:22 pm

Post by xudzh »

thanks guys
(wow this forum is active and helpful, on the other one I post no one replied for like 2 days)
I'm going to look at php designer and crimson, since they're free
:D
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

xudzh wrote:thanks guys
(wow this forum is active and helpful, on the other one I post no one replied for like 2 days)
I'm going to look at php designer and crimson, since they're free
:D
This place kicks the smurfs of all other forums by far. I love it here.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Textpad is free too, and very good.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Grim... wrote:unrelevent
*cough* irrelevant *cough*
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

Crimson Editor is outstanding, and it has a "find in files" feature.
Post Reply