Page 1 of 1

Changing the .htaccess to allow php.gif files

Posted: Thu Jul 13, 2006 8:11 pm
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?

Posted: Thu Jul 13, 2006 8:58 pm
by Weirdan
post your code

Posted: Fri Jul 14, 2006 6:12 am
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.