title: How to run php script in png/jpg extension
body: <p>How can i edit .htaccess file to make client run php script, but in png/jpg extension. Soo...
  User will visit url </p>
  
  <p><a href="http://example.com/script.png" rel="nofollow">http://example.com/script.png</a> and he will see "test"(php script will return this value), not image.
  That's what i already did:
  .htaccess file:</p>
  
  <pre><code>AddType application/x-httpd-php .png
  </code></pre>
  
  <p>script.png file:</p>
  
  <pre><code>&lt;?php
  header("Content-type: image/png");
  echo 'test';
  ?&gt;
  </code></pre>
  
  <p>What is wrong with this code? Why it doesn't work? Browser tries to download the image :/</p>