PHP GD output

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
OK, so I'm coding something for a friend to use on a forum (display something in his signature) that is generated every time it is viewed. Thing is, the forum he wants to use this for only displays certain image types inside the bbcode img tags...but it won't display a .php file. How can I get my script to display in there?

One option someone proposed was this:
AddType application/x-httpd-php .php .png

For the apache web server...but then it executes ALL png files...which he won't want.

Any clues?

Thanks!
 

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
How would I go about that?

What would the htaccess file need to contain?

For testing, I just set my allowoverride to all in my http.conf file...is that all I need to allow this?

Thanks.
 

superjohnyo

Senior member
May 6, 2005
257
0
0
If you just put the line you listed into a file called .htaccess (you can do it with any text editor), then put it into a folder along with the php file, it will work. You don't need it in the conf.
 

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
Yeah, but that doesn't work...from what I've read, for the htaccess files to work you need to set what they are allowed to do in the http.conf file?
 

superjohnyo

Senior member
May 6, 2005
257
0
0
Hmm.. I've never had problems where i had to do that, but it's usually on shared hosting that has it already turned on.