suresh1 Posted October 6, 2009 Share Posted October 6, 2009 I have to search asterisk(*) in the php code of the php files what i have written .Any one give the suggestions plz... Thanks in Adv... Quote Link to comment Share on other sites More sharing options...
cags Posted October 6, 2009 Share Posted October 6, 2009 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. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted October 6, 2009 Share Posted October 6, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.