Jump to content

[SOLVED] PNG to PHP .htaccess


Dale_G

Recommended Posts

Hey everyone.

 

Let's say I have a php file at www.mysite.com/image.php.

 

This PHP file generates an image.

 

So using this code

 

<img src="www.mysite.com/image.php">

 

the image would show up.

 

The site this is going on has some sort of restriction and all IMG tags must end with a .png, .gif, etc.

 

So I need to be able to use this code

 

<img src="www.mysite.com/image.png">

 

yet retrieve image.php.

 

So basically I need to know how to rewrite image.PNG to image.PHP using .htaccess

 

Thanks! ;D

Link to comment
https://forums.phpfreaks.com/topic/82974-solved-png-to-php-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.