Lassie Posted January 16, 2007 Share Posted January 16, 2007 I am retieving the contents of a dir for a download.$hash holds the folderThe code is[code]//open the dir $folder= opendir('C:pick_up/$hash');//initialise an array to store the contents $files = array();//loop through the directory while(false !==($item = readdir($folder))) { $files[] = $item; } closedir($folder); echo '<pre>'; print_r ($files); echo '</pre>';[/code]I dont get any output and my debugger goes into a never ending loop.How can I debug this? Link to comment https://forums.phpfreaks.com/topic/34443-open-dir-to-list-contents/ Share on other sites More sharing options...
Lassie Posted January 16, 2007 Author Share Posted January 16, 2007 Hi there I have solved the immediate prolem. thanks Link to comment https://forums.phpfreaks.com/topic/34443-open-dir-to-list-contents/#findComment-162235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.