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? 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)) { 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
Archived
This topic is now archived and is closed to further replies.