pneudralics Posted September 13, 2009 Share Posted September 13, 2009 I eventually want to make a section to edit a slideshow. I can't get it to read the subdirectories under the slideshow directory unless I put editslideshow.php and change the $search_dir = '.' called from connect.php SLIDESHOWPATH = "C:/wamp/www/slideshow/"; /includes/editslideshow.php //Set directory $search_dir = SLIDESHOWPATH; $dp = opendir ($search_dir); echo SLIDESHOWPATH; //List directories while ($item = readdir ($dp) ) { if ( (is_dir ($item)) AND (substr($item, 0, 1) != '.') ) { echo "$item<br />\n"; } } rewinddir ($dp); //Reset pointer Link to comment https://forums.phpfreaks.com/topic/174089-cant-seem-to-read-the-contents-of-other-directories/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.