Anil Labs

Friday, April 3, 2009

File Extension Using PHP

2 comments:

  1. [...] 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 [...]

    ReplyDelete
  2. more simpler:
    strtolower(end(explode('.',$filename));

    also worth reading http://php.net/manual/en/function.pathinfo.php

    ReplyDelete