How in the hell do I find out if PHP is compiled in with --enable-exif??? I tried looking in a PHP info function and didn’t find anything about exif functions, but exif functions are compatible with anything greater than 4.3, and I have 4.3.8?
EDIT: I’ve spent the past 2 days (on and off) making this upload script and it won’t work on my localhost because the PHP version isn’t high enough, but it should on my real site and it won’t. I’m pissed. :mad:
We are currently running quite an open setup for PHP and you may enable EXIF functions as you need them by configuring your own PHP.INI file and by placing it in every directory where a script requires the special PHP.INI configuration values.
So how the hell do I do that? It sounds like I have to write my OWN php.ini file?
just checked my php.ini file… i don’t even have that turned on. so i can pretty much guarantee its not turned on by default. what are you trying to do? maybe we can approach this a different way?
exif_imagetype() function… reads the first few lines of an image file and returns it’s type (gif, jpeg, jpg, png, bmp, etc.). Seems to be a lot more secure than the standard ways of determining file types, and since the gallery will be used for images only, I wanted to use this function.
yes, that certainly is fitting… although if it isn’t turned on by default, then that kind of sucks for anyone who wants to use this script I’m writing.
well i guess the reason why no one uses that is cause you can specify which extensions you can upload. take a look at the uploader that i use, its a simple script that works pretty awesome.
Yeah, the old gallery that I use w/ XMB uses regular functions, but I’ve been told (by someone quite knowledgeable) that you can upload a “fake gif” and execute all types of crap. :dunno:
um you can, but if you setup your server right… the account could never execute. you would have to have the iusr in my case be able to execute a file, which in no way can they ever. for you it would be how you chmod the upload folder.
its free, not sure if its under GPL. you can edit it too