Danny620 Posted December 19, 2011 Share Posted December 19, 2011 Hi im using ftp_rawlist () to list files in my web hosting folder /public_html/ it works fine, but is there anyway to only show/list .php & html files? Quote Link to comment https://forums.phpfreaks.com/topic/253477-ftp-list-html-files-php/ Share on other sites More sharing options...
scootstah Posted December 19, 2011 Share Posted December 19, 2011 Loop through it, and do if (preg_match('/.php$|.html$/', $file)) { Quote Link to comment https://forums.phpfreaks.com/topic/253477-ftp-list-html-files-php/#findComment-1299351 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.