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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.