Jump to content

Archived

This topic is now archived and is closed to further replies.

marcus

PHP Searching W/o SQL??

Recommended Posts

I can't figure out a way this could be done, anyone have any scripts or like websites they can direct me to?

Share this post


Link to post
Share on other sites
any type, mostly, png, gif, jpg, php and inc

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 for

if that's understandable

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
ok, how about just inc and php files?

like searching for TEXT not any php inside it

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
ok, let's like just search a whole website

Share this post


Link to post
Share on other sites
http://www.google.com/search?hl=en&lr=&c2coff=1&q=php+%2B+free+%22site+search%22+script&btnG=Search

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.