- Impact
- 19
hey
i am using a script that gets an image from the directory and displays it using
but i want it to check to see that "[imgdir]".$media['nameid'].".png' " exists..and if it does..then i want it to do this..otherwise i want it to show another image...i know i am suppose to use the IF statement but i cant figure out what command to use to see if the file exists?
thanks
P.S: rep will be added
i am using a script that gets an image from the directory and displays it using
PHP:
<img src='[imgdir]".$media['nameid'].".png' width='[twidth]' height='[theight]' style='border: 1px solid #000000;' />
thanks
P.S: rep will be added





