MMDE Posted January 12, 2011 Share Posted January 12, 2011 sure, I know how to output a picture with a php script. the problem is, the host I use, they won't let me edit the php.ini file to look through png files for PHP scripts before outputting. Of course, it is bad practice anyways... Is there any way to make it easy for a user to download the image with a .png extension instead of .php. (I know this is done automatically in windows 7, like: image.php.png because it reads the content type). Any good ideas? =) Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 12, 2011 Share Posted January 12, 2011 use mod rewrite to rewrite .png to a .php file that returns the requested file name. Quote Link to comment Share on other sites More sharing options...
MMDE Posted January 14, 2011 Author Share Posted January 14, 2011 use mod rewrite to rewrite .png to a .php file that returns the requested file name. I have no access to the apache server to do that... or do I not need that? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 14, 2011 Share Posted January 14, 2011 you should be able to use .htaccess for mod rewrite http://www.google.com/search?client=safari&rls=en&q=mod_rewrite+.htaccess&ie=UTF-8&oe=UTF-8 Quote Link to comment 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.