title: How to open a new tab with PHP
body: <p>I'm trying to open a new tab with Php, then display an image. I found openWindow() function but it applies to Javascript. I'm trying to use <strong>only Php</strong>.</p>
  
  <p>My Php code:</p>
  
  <pre><code>&lt;?php
  function showImage() {
    $my_img = imagecreate( 200, 80 );
    $background = imagecolorallocate( $my_img, 0, 0, 255 );
    $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
    $line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
    imagestring( $my_img, 4, 30, 25, "Quote", $text_colour );
    imagesetthickness ( $my_img, 5 );
    imageline( $my_img, 30, 45, 165, 45, $line_colour );
  
    header( "Content-type: image/png" );
    imagepng( $my_img, "quote.png" );
    imagecolordeallocate( $line_color );
    imagecolordeallocate( $text_color );
    imagecolordeallocate( $background );
  }
  ?&gt;
  </code></pre>
  
  <p>Any help would be appreciated!</p>