Search Function
Posted: Wed Sep 13, 2006 6:09 pm
feyd | Please use
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]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");
?>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]