[...] website have list of files and users can download those files. In my previous post i have explain how to get extension of file, using that post get the [...]
more simpler:strtolower(end(explode('.',$filename));also worth reading http://php.net/manual/en/function.pathinfo.php
[...] website have list of files and users can download those files. In my previous post i have explain how to get extension of file, using that post get the [...]
ReplyDeletemore simpler:
ReplyDeletestrtolower(end(explode('.',$filename));
also worth reading http://php.net/manual/en/function.pathinfo.php