# web-smarties, help me?

**URL:** <https://forums.speedlife.net/t/web-smarties-help-me/169459>\
**Category:** PittSpeed Off Topic\
**Created:** [September 29, 2004, 12:55pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459 "2004-09-29T12:55:20Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 12:55pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/1 "2004-09-29T12:55:20Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 1:16pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/2 "2004-09-29T13:16:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 1:17pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/3 "2004-09-29T13:17:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 1:21pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/4 "2004-09-29T13:21:35Z")

</div>

most likely it means its not enabled

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 1:22pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/5 "2004-09-29T13:22:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 1:23pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/6 "2004-09-29T13:23:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 8:09pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/7 "2004-09-29T20:09:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 8:33pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/8 "2004-09-29T20:33:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 8:35pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/9 "2004-09-29T20:35:47Z")

</div>

free host \> no host at all… ☹ ☹ ☹ I’m so confused!

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 8:38pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/10 "2004-09-29T20:38:58Z")

</div>

> [@huskysgrl](#):
>
> free host \> no host at all… ☹ ☹ ☹ I’m so confused!

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

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 8:43pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/11 "2004-09-29T20:43:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 8:53pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/12 "2004-09-29T20:53:04Z")

</div>

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. ☹

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 8:53pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/13 "2004-09-29T20:53:57Z")

</div>

> [@whitey](#):
>
> the i guess the phrase, “you get what you pay for” works in this situation

🤣 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.

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 9:00pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/14 "2004-09-29T21:00:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 29, 2004, 9:03pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/15 "2004-09-29T21:03:51Z")

</div>

> [@whitey](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 29, 2004, 9:12pm UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/16 "2004-09-29T21:12:34Z")

</div>

> [@huskysgrl](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![ninjenn](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@ninjenn](https://forums.speedlife.net/u/ninjenn)\
**Post date:** [September 30, 2004, 5:13am UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/17 "2004-09-30T05:13:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fshowcars](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/fshowcars/32/5937_2.png) [@fshowcars](https://forums.speedlife.net/u/fshowcars)\
**Post date:** [September 30, 2004, 5:41am UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/18 "2004-09-30T05:41:06Z")

</div>

> [@huskysgrl](#):
>
> snatch

:kekegay:

---

<div class="post-metadata">

**Author:** ![whitey](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/whitey/32/5911_2.png) [@whitey](https://forums.speedlife.net/u/whitey)\
**Post date:** [September 30, 2004, 6:17am UTC](https://forums.speedlife.net/t/web-smarties-help-me/169459/19 "2004-09-30T06:17:35Z")

</div>

[http://celerondude.com/](http://celerondude.com/)
