Jump to content

Search in the PHP Files


suresh1

Recommended Posts

I don't understand the question? From your description it sounds like you wish to search your php files for occurances of the asterisk. That being the case I can't see why you wouldn't just use any text editor and use the Find function, as I see no real point in searching a php file with php. Perhaps I'm not understanding you.

Firstly, the board you posted is is not a help forum. I would have thought that having that written in bold and capitals would be enough for you to see that, but apparently not.

 

As cags says, if you're looking for something in a file you could just use the find option in almost any editor. If you wish to search through lots of files at once and are using a *nix operating system, you could use grep...

 

For example, the following would look through all files with a .php extension in the current folder and print out any lines with an asterisk is them.

 

grep -H -n \* *.php

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.