Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread Poll:
Author: Subject: Php Image display help
kumel619
Newbie

Posts: 1
Registered: 7/25/2011
Location: India
Member Is Offline
posted on 7/25/2011 at 05:00 PM Reply With Quote
Php Image display help


<?php
$dirname = "snaps/thumbs/";

$images = scandir($dirname);
$ignore = Array(".", "..");
foreach($images as $curimg){
if(!in_array($curimg, $ignore)) {
echo "<img src='snaps/$curimg' /><br/>
<br/>
n";

};
}
?>

By this above code u can display imgs from directory.. so all i wanna know is how do we show a custom error msg when thr s no imgs in dat directory..? cos whn thr s no img in dat directory den it shws some non-sense error..

SO PLEASE HELP SOM1 PLEASEEEEEEEEEEEEEEE
View User's Profile View All Posts By User U2U Member
Post new thread Poll:

Related Links:
Product Page
Product Demonstrations Live Demos
Standard corporative style skin
"Black ignition" skin
"Grange house" skin
Product Documentation Documentation
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004