title: Create and then directly load an image from a folder inline with HTML
body: <p>I want to call image from the dump folder after in website</p>
  
  <p>My <code>image.php</code> page looks like this:</p>
  
  <pre><code>&lt;?php
      header('Content-type: image/jpeg');
      $jpg_image = imagecreatefromjpeg('Desert.jpg');
      $white = imagecolorallocate($jpg_image, 73, 41, 236);
      $font_path = 'OpenSans-Italic.TTF';
      $text = $_GET['name'] ;
      imagettftext($jpg_image, 25, 0, 75, 50, $white, $font_path, $text);
      $image_url="dump/".rawurlencode(trim($text)).".jpg";
      imagejpeg($jpg_image,$image_url);
      readfile($image_url);
      imagedestroy($jpg_image);
  ?&gt;
  </code></pre>
  
  <p>And I have used a Javascript in home page that redirects me to <code>result.php</code> with the image. </p>
  
  <p>My <code>result.php</code> page looks like this:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;img src="image.php?name=&lt;?php echo $_GET['name']; ?&gt;" /&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now I'm calling the image from <code>image.php</code> and I want to call it from dump folder. Any help?</p>