Vettel Posted April 24, 2010 Share Posted April 24, 2010 The script I have currently uses GD library to create a png image. The only problem is that the URL for this is www.mysite.com/image.php. I really need this image to have a .png extension. I know it's possible, but am having difficulty in finding how to achieve it. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/199610-image-generation/ Share on other sites More sharing options...
Alex Posted April 24, 2010 Share Posted April 24, 2010 If you're using Apache you can rename the file image.png and create a .htaccess file like this: <Files "image.png"> AddType application/x-httpd-php .png </Files> To have image.png parsed as a php file. Quote Link to comment https://forums.phpfreaks.com/topic/199610-image-generation/#findComment-1047727 Share on other sites More sharing options...
Vettel Posted April 24, 2010 Author Share Posted April 24, 2010 Thank you Alex- great help ANSWERED Quote Link to comment https://forums.phpfreaks.com/topic/199610-image-generation/#findComment-1047731 Share on other sites More sharing options...
Alex Posted April 24, 2010 Share Posted April 24, 2010 You can mark the topic as solved by clicking the button to do so at the bottom of the page. Quote Link to comment https://forums.phpfreaks.com/topic/199610-image-generation/#findComment-1047743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.