web-smarties, help me?

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:

right a php script to display the info… its easy!

I did that… phpinfo(); in a file, and it didn’t say anything about -enable-exif… does that mean it’s not enabled? Or am I just being stupid here?

most likely it means its not enabled

i am assuming you can’t edit your php.ini file either?

I don’t have root access, so probably not. I suppose I could e-mail the guy and have him change it.

I got this response from my host:

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?

hahah… umm not sure how that works.

i never heard of it like that cause the php.ini file loads with the php. got me, your host > me or host = retarded

free host > no host at all… :frowning: :frowning: :frowning: I’m so confused!

the i guess the phrase, “you get what you pay for” works in this situation

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. :frowning:

:rofl: 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:

Is your uploader under a GPL license?

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

Folder has to be chmod’d to 777 from what I understand (not entirely sure).

Where did you get your uploader so I can snatch it?

:kekegay:

http://celerondude.com/