View previous topic :: View next topic |
Author |
Message |
mrtdunn -
Joined: 27 Jan 2005 Posts: 16 Location: Joplin,MO
|
Posted: Thu Feb 03, 2005 5:21 pm Post subject: Searching Text within PHP doc |
|
|
Does anyone know of a way to search an entire folder of php files to locate certain text within one or more of those files? I have tried to use the default search capability on my XP Pro OS but when I try the pull down menu to use a certain file extension, i.e. *.php, the extension is not there. Is this why the search won't produce any results? If so, is there a way I can fix it? Anonymoose I'm looking in your direction. Thanks.
__________________________________________________
mrtdunn---"In God We Trust, all others we question." |
|
Back to top |
|
 |
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Thu Feb 03, 2005 5:29 pm Post subject: |
|
|
I don't think its a registered ext. So I don't think the .php will show up in the drop down menu. _________________ int main() {
cout << "Im Pro Apache";
cin.get();
} |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Feb 03, 2005 11:23 pm Post subject: |
|
|
Well, I use the "classic search" on my XP, can't stand those horrible animated characters... Switched standard searching back on for a second to check and all you have to do is choose "All files and folders" from the initial "What do you want to search for?" menu then *.php for "All or part of the filename" and the text in the "A word or phrase in the file box"
The Windows searches aren't that great for searching for specific text in files - the search will show the files but not where the text is etc. However, if that's all you wanted to do, there you go! |
|
Back to top |
|
 |
mrtdunn -
Joined: 27 Jan 2005 Posts: 16 Location: Joplin,MO
|
Posted: Thu Feb 03, 2005 11:40 pm Post subject: |
|
|
Yeah unfortunately I am searching, or trying to anyway, for specific text within the files so I can edit them accordingly. Thanks for your help.
_________________________________________________
mrtdunn--"In God We Trust, all others we question." |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Feb 04, 2005 8:41 am Post subject: |
|
|
Are you trying to replace the same phrase/line of text in every file found with a new line of text which is also to be used in every file, or are you replacing occurences on a file by file basis?
eg find all lines with <title>Anonymoose's Great Webpage</title> and replace all occurrences of that with <title>Anonymoose's Really Great Webpage</title>
If you want to search and replace text within files, get yourself a decent text editor with multiple file search and replace support. A couple of free ones are JEdit, ConTEXT and PSPad. They're all pretty much as good as each other, include PHP/HTML syntax highlighting etc - have a play and see which you prefer.
http://www.jedit.org/index.php?page=features
http://www.pspad.com/en/pspad.htm
http://www.context.cx/features.html |
|
Back to top |
|
 |
mrtdunn -
Joined: 27 Jan 2005 Posts: 16 Location: Joplin,MO
|
Posted: Fri Feb 04, 2005 5:30 pm Post subject: |
|
|
Once again Anonymoose saves the day. That jEdit is wonderful. And it does more than I had hoped for. Thank you my friend. You will not be forgotten.
And the cowboy rides off into the sunset. THE END.
_________________________________________________
mrtdunn--"In God We Trust, all others we question." |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Feb 04, 2005 6:09 pm Post subject: |
|
|
Wouldn't be my first choice being Java based, but if it does what you wanted, great :D |
|
Back to top |
|
 |
mrtdunn -
Joined: 27 Jan 2005 Posts: 16 Location: Joplin,MO
|
Posted: Fri Feb 04, 2005 6:17 pm Post subject: |
|
|
Not a fan of Java are we?? |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Feb 04, 2005 6:51 pm Post subject: |
|
|
Not so much not a fan of Java as not a fan of my machine grinding to a halt while I wait for the JVM to load before the app runs, then wondering why it takes seconds to respond to every click in the app :) Native code all the way if I have a choice, but it's horses for courses. As long as JEdit does the trick for you, that's all that matters... |
|
Back to top |
|
 |
|