check a file from other site
Posted: Mon Mar 21, 2005 4:28 am
Hi, i found that "file_exists" only check the file from the same server (domain), but now I need to check whether a file from the other site is exist or not...
for example : I placed a product pictures on the site B. now, I build a new site (we called it site A). here in site A, I want to display the picture files from site B into site A... yes, I can easily use <img src='http://www.b.com/picture.jpg'> but I also want to display the "no-pic.jpg" if the file doesn't exist...
any solution for these ?
thanks a lot...
for example : I placed a product pictures on the site B. now, I build a new site (we called it site A). here in site A, I want to display the picture files from site B into site A... yes, I can easily use <img src='http://www.b.com/picture.jpg'> but I also want to display the "no-pic.jpg" if the file doesn't exist...
any solution for these ?
thanks a lot...