<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>fileinfo on Ivan Villareal</title><link>https://ivanvillareal.com/tags/fileinfo/</link><description>Recent content in fileinfo on Ivan Villareal</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 25 Dec 2009 04:47:24 +0000</lastBuildDate><atom:link href="https://ivanvillareal.com/tags/fileinfo/index.xml" rel="self" type="application/rss+xml"/><item><title>File Type Detection in PHP</title><link>https://ivanvillareal.com/file-type-detecion-in-php/</link><pubDate>Fri, 25 Dec 2009 04:47:24 +0000</pubDate><guid>https://ivanvillareal.com/file-type-detecion-in-php/</guid><description>I’m working on a project where the users can upload files, and I need to know the type of file they are uploading, a simple solution would be to check the extensions of the files, but this has many flaws, so I was looking for a reliable way to detect the type of file, and I found a PECL extension called file info this extension is enabled by default in PHP 5.</description></item></channel></rss>