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... Link to comment https://forums.phpfreaks.com/topic/176666-search-in-the-php-files/ 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. Link to comment https://forums.phpfreaks.com/topic/176666-search-in-the-php-files/#findComment-931393 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 Link to comment https://forums.phpfreaks.com/topic/176666-search-in-the-php-files/#findComment-931397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.