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? Quote 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! Quote 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 Quote 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. Quote 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 Quote 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? Quote 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! Quote 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 Quote 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] Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/23379-php-searching-wo-sql/#findComment-106044 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.