tibberous Posted July 24, 2008 Share Posted July 24, 2008 I was thinking something like.... $cmd = "grep -R -e <string>"; shell_exec($cmd); What makes it harder is that my string is: $user_id != 105 So I think I need to escape the $, ! and space? Also, is there a way to just do php files? Link to comment https://forums.phpfreaks.com/topic/116447-need-list-of-files-in-a-directory-containing-a-string/ Share on other sites More sharing options...
.josh Posted July 24, 2008 Share Posted July 24, 2008 http://php.net/glob Link to comment https://forums.phpfreaks.com/topic/116447-need-list-of-files-in-a-directory-containing-a-string/#findComment-598804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.