
March 7th, 2013, 05:04 PM
|
|
|
|
How to check images on if statement?
Hi guys,
I need your help, I want to create a filename for the image on the webpage and I also want to out how I can check on the if statement to see if the image on the webpage is exist.
Code:
$image1 = <div id="image1" style="position:absolute; overflow:hidden; left:415px; top:157px; width:114px; height:81px; z-index:0"><img src="/images/tvguide_blue.jpg" alt="" title="" border=0 width=114 height=81></div>
On the webpage, it display as "$image =". Does anyone know how i can create a function for a filename so I can write something like this:
Code:
if ($image = exist) {
// do something
}
Does anyone have any idea?
thanks in advance
Last edited by stephen100 : March 7th, 2013 at 05:47 PM.
|