Hi, i have a dynamic sig I wish for my users to use on forums: http://extremeteenforums.com/forums/sig.php
However, it does not work in [img] tags as it is a .php file. I need a way to make it look like a .png file so this would work..
Help please.
Making .php look like .png for forums
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: Making .php look like .png for forums
Code: Select all
<img src="http://extremeteenforums.com/forums/sig.php">If it isn't working, then the problem is somewhere in sig.php, but as we have no idea what the code looks like, we can't do much to help
Re: Making .php look like .png for forums
Hi,
I was trying to use it on forums which didn't allow embedded php (for obvious reason)-
But I have got this to work by creating a sub directory called signature.png, and putting it there as index.php
I was trying to use it on forums which didn't allow embedded php (for obvious reason)-
But I have got this to work by creating a sub directory called signature.png, and putting it there as index.php
Re: Making .php look like .png for forums
You can actually use a URL like
If sig.php exists then the "/image.png" at the end won't make any difference.
Code: Select all
http://extremeteenforums.com/forums/sig.php/image.pngRe: Making .php look like .png for forums
assuming you're using apache, if the url is http://extremeteenforums.com/forums/sig.php
in the /forums/ folder create a text file called .htaccess and within it paste:
and now http://extremeteenforums.com/forums/sig.png will be routed into sig.php by apache.
in the /forums/ folder create a text file called .htaccess and within it paste:
Code: Select all
RewriteEngine On
RewriteRule sig.png sig.phpRe: Making .php look like .png for forums
This was really practical and useful, thanks!panic! wrote:assuming you're using apache, if the url is http://extremeteenforums.com/forums/sig.php
in the /forums/ folder create a text file called .htaccess and within it paste:
and now http://extremeteenforums.com/forums/sig.png will be routed into sig.php by apache.Code: Select all
RewriteEngine On RewriteRule sig.png sig.php