Page 1 of 1

Search Function

Posted: Wed Sep 13, 2006 6:09 pm
by winsonlee
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Code: Select all

<?php
// include class
include("Find.php");

// initialize finder
$finder = new File_Find();

// search for matching files 
// in named directory and subdirectories
$results = $finder->search("/kd/i", "/Program Files/", "perl");


?>
I wonder with the find class, am i able to search for files that is located in network ??
My computer is map to another pc hard disk and it is name as Q: drive.
How am i perform a search on all the drives that maps on my computer ??


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Thu Sep 21, 2006 3:58 am
by Benjamin
If it has a drive letter you should be able to search it by using the full path. In *nix environments, one could simply create a symbolic link.