Jump to content

Archived

This topic is now archived and is closed to further replies.

rallokkcaz

directory page help

Recommended Posts

ok here's what happens ive figuered out how to upload images to
my site.
but when i want to view my images they show up in this boring directory thing
that looks like this
[img]http://www.pokebash.com/images/Picture%203.png[/img]
can someone pleeze help?

Share this post


Link to post
Share on other sites
my goal is to try to make a page that holds them.
but i don't know how to do it.

Share this post


Link to post
Share on other sites
Asked and answered already .... http://www.phpfreaks.com/forums/index.php/topic,105382.0.html

Did you try glob() ?

Please don't start new threads for the same problem.

Share this post


Link to post
Share on other sites
Look at the example

http://www.nstoia.com/toh/technical/listdir/index.php

Lite...

Share this post


Link to post
Share on other sites
ok people your suggestions aren't helping :-\

@ AndyB : i don't know what that is ???

@ lite i don't know what that is ???

Share this post


Link to post
Share on other sites
http://ca.php.net/manual/en/function.glob.php

Share this post


Link to post
Share on other sites
ok thanks for that help but i wanna show the images not the file
size and type

Share this post


Link to post
Share on other sites
[code]<?php
foreach (glob("*.gif") as $filename) {
  echo "<img src='". $filename. "'>";
}
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.