php1 Posted September 25, 2008 Share Posted September 25, 2008 Dear all , i want to display only directories using browse button. is it possible throuh php Quote Link to comment https://forums.phpfreaks.com/topic/125749-is-it-possible-to-browse-directories-with-a-browse-button-using-php/ Share on other sites More sharing options...
Zane Posted September 25, 2008 Share Posted September 25, 2008 you can run this command with the exec function....if you're running Linux ls -d */ exec("ls -d */"); This would be the command for windows exec("dir /ad"); Quote Link to comment https://forums.phpfreaks.com/topic/125749-is-it-possible-to-browse-directories-with-a-browse-button-using-php/#findComment-650275 Share on other sites More sharing options...
php1 Posted September 26, 2008 Author Share Posted September 26, 2008 I want to browse directories like browsing files using <input type="file">. is there some way to browse directories like this? Quote Link to comment https://forums.phpfreaks.com/topic/125749-is-it-possible-to-browse-directories-with-a-browse-button-using-php/#findComment-651144 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.