Hello Friends..I am not familiar with PHP so much thats why i am bugging you. I want to make indexer using [U]form[/U]. It has to accept .htm and .html files or actual folder names. If the input received is a folder, find all the .htm and .html inside that folder and use the indexer on those files. I need to traverse the entire directory structure rooted at the path provided as a parameter and index every .htm and .html file . I need to display all the information of the files i.e. all .htm and .html files and display the full path of each file is indexed. The information display contains metatags and the word count. Thanks.
@cridleyOct 24.2007 — #look up opendir() and readdir() [CODE] function IterateDir($path) { $handle = opendir($path);
while (false !== ($file = readdir($handle))) { //split $file to get the extension then do whatever you want with the file // use is_dir($file) to check whether it's a dir, if so then recursively call this function to iterate through the entire tree structure } }[/CODE]
Obviously this allows to open directories on the server machine, not the client.
@madristaaauthorOct 25.2007 — #i did it..but i am not able to do it..can u expalin me properly..as after wards i have to find the meta information and word count