Guest User

Untitled

a guest
Nov 18th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. while loop is running{
  2. $_SESSION['path'] = $imageURL;
  3. echo '<img src="pic.png">';
  4. }
  5.  
  6. <?php
  7. session_start();
  8. $name = $_SESSION['path'];
  9. $fp = fopen($name, 'rb');
  10.  
  11. header("Content-Type: image/png");
  12. header("Content-Length: " . filesize($name));
  13.  
  14. fpassthru($fp);
  15. exit;
  16. ?>
Add Comment
Please, Sign In to add comment