marcus Posted October 8, 2006 Share Posted October 8, 2006 I can't figure out a way this could be done, anyone have any scripts or like websites they can direct me to? Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/ Share on other sites More sharing options...
printf Posted October 8, 2006 Share Posted October 8, 2006 What type of document are you search?me! Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-105999 Share on other sites More sharing options...
marcus Posted October 8, 2006 Author Share Posted October 8, 2006 any type, mostly, png, gif, jpg, php and inc Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106001 Share on other sites More sharing options...
trq Posted October 8, 2006 Share Posted October 8, 2006 You'll need to explain yourself a little better. Do you want to search [i]through[/i] these documents or [i]for[/i] these documents. I assume the latter as the files you have specified dont contain textual data. Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106002 Share on other sites More sharing options...
marcus Posted October 8, 2006 Author Share Posted October 8, 2006 Like, containing words in the document.Like a simple user search script, they type in what they want to find, and it comes up with pages including the text they searched forif that's understandable Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106004 Share on other sites More sharing options...
marcus Posted October 8, 2006 Author Share Posted October 8, 2006 anybody? Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106021 Share on other sites More sharing options...
printf Posted October 8, 2006 Share Posted October 8, 2006 You can't search inside image files, I mean you could if you hex the data, but why would you, there is no real text strings in them. Like [b]thorpe[/b], give a good example of what you want to search for...me! Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106026 Share on other sites More sharing options...
marcus Posted October 8, 2006 Author Share Posted October 8, 2006 ok, how about just inc and php files?like searching for TEXT not any php inside it Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106027 Share on other sites More sharing options...
trq Posted October 8, 2006 Share Posted October 8, 2006 Your still not being real clear. To search for text in a file you could simply use something like....[code=php:0]<?php $file = "filetosearch.txt"; $term = "termtosearchfor"; $fp = file_get_contents($file); if (strstr($fp,$term)) { echo "$term found in $file"; }?>[/code] Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106032 Share on other sites More sharing options...
marcus Posted October 8, 2006 Author Share Posted October 8, 2006 ok, let's like just search a whole website Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106034 Share on other sites More sharing options...
AndyB Posted October 9, 2006 Share Posted October 9, 2006 http://www.google.com/search?hl=en&lr=&c2coff=1&q=php+%2B+free+%22site+search%22+script&btnG=Search Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.