Changing the .htaccess to allow php.gif files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HomerTheDragoon
Forum Newbie
Posts: 21
Joined: Sat Jul 08, 2006 2:10 am

Changing the .htaccess to allow php.gif files

Post by HomerTheDragoon »

Alright i have a dynamic image that i created to use on a phpbb forum. From what i hear, you can change the .htaccess and add this AddType application/x-httpd-php .gif. But when i do that and then change my file from .php to .gif, all it does is asks if i want to download it. :( What am i doing wrong?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

post your code
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Does your script have a content type header?

Code: Select all

header("Content-type: image/gif");
Put that prior to calling imagegif() if you don't.
Post Reply