houssam_ballout Posted February 4, 2011 Share Posted February 4, 2011 Hello all,I had several php files, and I need to create a search engine for these files.Any help?Thanks Link to comment Share on other sites More sharing options...
birbal Posted February 4, 2011 Share Posted February 4, 2011 i am not sure..search enguine for what?...are you looking for searchin your php files located at your filesystem..or any other? (eg like searching in db) Link to comment Share on other sites More sharing options...
houssam_ballout Posted February 4, 2011 Author Share Posted February 4, 2011 i am not sure..search enguine for what?...are you looking for searchin your php files located at your filesystem..or any other? (eg like searching in db)well, I had a website built using php files, and I need some sort of searching using php ( I don't have a database). Link to comment Share on other sites More sharing options...
birbal Posted February 4, 2011 Share Posted February 4, 2011 i am assuming you are looking for page content searchyou can traverse your folder(where holds document) to get each file using globthen get each file data using file_get_contents...chek for certain values (search key) using preg_match if matches found return the file location..as a founded file.and i think probably its possible with DOM also. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.