Anyone has a site content search script?

Started on the old forum in February 2010 · view the original in the archive · old links redirect here

7 replies · 901 views · started 16 years ago · 1 min read

6 participants
monsp3 Developer · 57 posts #1

The one that searches contents to your site only and not by other sites, just like this one http://wapstack.mobi/search.php

It does not need any mysql but flat php script all you need to do is add the directory path which the site will search.

rap-4ever Developer · 180 posts #2

i just have this.. sory for bad english

<?php $searchString = \"anyfolder\"; // folder who search.. KUKI NGD... $path = \"path_to_files/*.htm\"; // // do not change anything below this line $searchString = \"#\".$searchString.\"#\"; $globarray = glob($path); if ($globarray) foreach ($globarray as $filename) { $source = file_get_contents($filename); if (preg_match($searchString,$source)) echo \"$filename \"; $count++; } echo \"Done - processed $count files\"; ?>
monsp3 Developer · 57 posts #3

Hey thanks but, I already hired someone to code it for me and it's already finished. But your effort wasn't wasted anyways this might be a good help to anyone. 🙂

pyramid_raider Developer · 60 posts #8

search.php is returing nothing even by changing permisions of download dir to 777... and moreover set.php is missing..

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close