File Extention

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    File Extention

    What is the code to get the file extention of a file.

    #2
    Get the content type (MIME type) of the uploaded file. This information is provided by the client browser, which means you should be cautious since it may be a wrong value provided by a malicious user.
    $contentType = $_FILES['myFile']['type']
    http://ngeo.ro

    Comment


      #3
      To change file name.sis to name

      Code:
      $name = str_replace (".sis", "", $file_name);
      Code:
      [url="$file_name"]$name[/url]
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment

      Working...
      X