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.

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.