title: PHP inside img src
body: <p>Trying to see what actions can be performed with a PHP script that is being called via an image src like so:</p>
  
  <pre><code>&lt;img src="http://example.com/script.php" /&gt;
  </code></pre>
  
  <p>Now, I have tried to include the PHP header() function in script.php:</p>
  
  <pre><code>&lt;?php
  header("Location: http://example.com");
  </code></pre>
  
  <p>I have also tried to echo an image url expecting the img to display it, which it didn't:</p>
  
  <pre><code>&lt;?php
  echo 'http://example.com/image.png';
  </code></pre>
  
  <p>Are there any ways of doing such things with a PHP script that is being called in the img src attribute?</p>