File Extention

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

2 replies · 804 views · started 19 years ago · 1 min read

2 participants
Guest #1

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

blackhowk Senior · 411 posts #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']

subzero Super moderator Fellow · 3,954 posts #3

To change file name.sis to name

$name = str_replace (".sis", "", $file_name);
[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... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close