Displaying an image from the tmp directory

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-05-20T09:28:37Z Indexed on 2010/05/20 9:50 UTC
Read the original article Hit count: 274

Filed under:
|

I have the following. A website that create temporarily images in the /tmp folder on the Linux server. The reason why I store it within this folder is since these images need to be cleared once in a while and it's so much easier just to clear the tmp directory using tmpwatch. Now my issue is to display the image within my browser?

Code

<img src="/tmp/3d34636.png" alt="image" />  

I'm running Centos with PHP

© Stack Overflow or respective owner

Related posts about php

Related posts about linux