473,412 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

File Search Engine Like Rapidshare Search Script

sagacious
Hi There..

Nice Site..

I Want to add a File Search Engine For My Upload And Download Site..

As Like As Rapidshare Search Engins..

I Mean A Search System That Will Search Files From A Folder Of My Server where the files are Uploading by Users..

Any One Have This Kinda Script , I will Greatful to Have it.. <email_removed>
Waiting For Reply..

Thank You.
Oct 12 '09 #1
10 5763
@sagacious
Me also need help on it.. any one here for help ???
Oct 12 '09 #2
Dormilich
8,658 Expert Mod 8TB
if you have the files in a directory (and not in a DB) you can use glob().
Oct 12 '09 #3
my db and directory both contain the files but it doesn't works with google custom search though it counts the pages but i need a script for that as like as RapidShare Search Engines..
Oct 12 '09 #4
Dormilich
8,658 Expert Mod 8TB
u s e g l o b ( )

____________________
Oct 12 '09 #5
hmm.. i tried bt dosen't work.. is there any built in script do you have in your collection ?

i need that for my site

www.get.biobeo.com
Oct 12 '09 #6
Dormilich
8,658 Expert Mod 8TB
@sagacious
nope, never used glob() before.
Oct 12 '09 #7
so can u guide me to pass through this ? is this possible to modify a rapid share search script to search through my file directory ?
Oct 12 '09 #8
Dormilich
8,658 Expert Mod 8TB
read the comments of the glob() manual entry, what you look for is quite probably described there.
Oct 12 '09 #9
hey, glob is kinda like a file/directory strpos(), cept i doesnt return false, ever.

just use it like this:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $mydir = 'dir/sub-dir';
  3. $myext = '.htm';
  4. foreach(glob("$mydir/*$myext") as $item) {
  5.   echo "<li>$item</li>";
  6. }
  7. ?>
try it, after changing to $mydir and $myext.
Sep 17 '10 #10
if you want to search inside files for a word...
thats harder. a LOT harder.
but you can do it.
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     $mydir = 'dir/sub-dir';
  3.     $myext = '.htm';
  4.     foreach(glob("$mydir/*$myext") as $item) {
  5.         $inside = file_get_contents($item);
  6.         $findme   = 'my text';
  7.         $pos = strpos($inside, $findme);
  8.  
  9. // Note our use of ===.  Simply == would not work as expected
  10. // because the position of 'a' was the 0th (first) character.
  11. if ($pos === false) {
  12.     echo "<!-- not found in $item -->";
  13. } else {
  14.     echo "<li><a href='$item'>$item</a></li>";
  15. }
  16.     }
  17. ?>
Sep 17 '10 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jason | last post by:
I would appreciate some help on how to convert a database table into an html file via FSO and whether more seasoned asp programmers recommned this route. The main reason I am attempting to do this...
2
by: Benny Alexander | last post by:
Hi, We are developing a CMS in ASP and before we write the code for a complete site search script and Forum, we want to check if is there any good ones? Kindly please let us know. Thanks in...
2
by: Rafael Nenninger | last post by:
This question has to do with MS file search but it is happening only with ..asp pages, so I though someone programming with .asp pages has experienced the same situation. I'm trying to find .asp...
2
by: Patrick | last post by:
Are the differences between a search engine, a subject directory and a meta search engine significant for an ebusiness web site owner? A meta search engine merely uses ordinary existing search...
1
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the...
2
by: todanrg3 | last post by:
It is possible to upload files to Rapidshare from another page?(not using Rapidshare's own form). How can i do this with PHP?
1
by: cglewis03 | last post by:
Hello, I am trying to build a search form with several different options to choose from. Currently it is set up to open within the same window if a single option is selected and open within a...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.