Top "File-extension" questions

A suffix appended to the end of a filename, in order to identify the type of file.

Extracting extension from filename in Python

Is there a function to extract the extension from a filename?

python filenames file-extension
What file uses .md extension and how should I edit them?

On GitHub, several projects have README.md files. It seems like a simple format file to express text and pictures. …

markdown file-extension
How to get the file extension in PHP?

I wish to get the file extension of an image I am uploading, but I just get an array back. $…

php file-extension
How do I get a file extension in PHP?

This is a question you can read everywhere on the web with various answers: $ext = end(explode('.', $filename)); $…

php file-extension
How can I get file extensions with JavaScript?

See code: var file1 = "50.xsl"; var file2 = "30.doc"; getFileExtension(file1); //returns xsl getFileExtension(file2); //returns doc function getFileExtension(filename) { /*TODO*/ }

javascript file-extension
JPG vs. JPEG image formats

I often use JPEG images, and I have noticed that there are two very similar file extensions: .jpg, which my …

image jpeg file-extension image-formats
Given a filesystem path, is there a shorter way to extract the filename without its extension?

I program in WPF C#. I have e.g. the following path: C:\Program Files\hello.txt and I want …

c# path filenames file-extension path-manipulation
How can I check the extension of a file?

I'm working on a certain program where I need to do different things depending on the extension of the file. …

python file-extension
How to get file extension from string in C++

Given a string "filename.conf", how to I verify the extension part? I need a cross platform solution.

c++ string filenames file-extension
What is phtml, and when should I use a .phtml extension rather than .php?

I'm wondering what the difference between .phtml and .php files is, and when to use one over the other.

file-extension php