PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Filename as searchtext (http://www.phpdig.net/forum/showthread.php?t=1877)

syrix 02-24-2005 12:15 AM

Filename as searchtext
 
Hey,

i want to search for filenames. the results have to be linked on this filenames. is this possible?

Charter 02-26-2005 07:59 PM

At the start of the phpdigIndexFile function in robot_functions.php add:
Code:

if (!isset($nbre_mots[$file])) {
    $nbre_mots[$file] = 1;
}

That should add the filename part of the indexed pages to the PhpDig engine.

Note that you may want to add some code inside the if statement to format the filename part to your preference.


All times are GMT -8. The time now is 11:29 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.