rallokkcaz Posted August 23, 2006 Share Posted August 23, 2006 ok here's what happens ive figuered out how to upload images tomy site.but when i want to view my images they show up in this boring directory thingthat looks like this[img]http://www.pokebash.com/images/Picture%203.png[/img]can someone pleeze help? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 23, 2006 Share Posted August 23, 2006 are you wanting to display all of the images in a directory? Quote Link to comment Share on other sites More sharing options...
rallokkcaz Posted August 23, 2006 Author Share Posted August 23, 2006 my goal is to try to make a page that holds them. but i don't know how to do it. Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 23, 2006 Share Posted August 23, 2006 Asked and answered already .... http://www.phpfreaks.com/forums/index.php/topic,105382.0.htmlDid you try glob() ?Please don't start new threads for the same problem. Quote Link to comment Share on other sites More sharing options...
litebearer Posted August 23, 2006 Share Posted August 23, 2006 Look at the examplehttp://www.nstoia.com/toh/technical/listdir/index.phpLite... Quote Link to comment Share on other sites More sharing options...
rallokkcaz Posted August 23, 2006 Author Share Posted August 23, 2006 ok people your suggestions aren't helping :-\@ AndyB : i don't know what that is ???@ lite i don't know what that is ??? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 23, 2006 Share Posted August 23, 2006 http://ca.php.net/manual/en/function.glob.php Quote Link to comment Share on other sites More sharing options...
rallokkcaz Posted August 24, 2006 Author Share Posted August 24, 2006 ok thanks for that help but i wanna show the images not the filesize and type Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 24, 2006 Share Posted August 24, 2006 [code]<?phpforeach (glob("*.gif") as $filename) { echo "<img src='". $filename. "'>";}?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.