Jump to content


Photo

directory page help


  • Please log in to reply
8 replies to this topic

#1 rallokkcaz

rallokkcaz
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts
  • LocationSomewhere, CA (Cactus Area)

Posted 23 August 2006 - 10:47 PM

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
Posted Image
can someone pleeze help?

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 23 August 2006 - 10:48 PM

are you wanting to display all of the images in a directory?

#3 rallokkcaz

rallokkcaz
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts
  • LocationSomewhere, CA (Cactus Area)

Posted 23 August 2006 - 10:49 PM

my goal is to try to make a page that holds them.
but i don't know how to do it.

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 23 August 2006 - 10:50 PM

Asked and answered already .... http://www.phpfreaks...c,105382.0.html

Did you try glob() ?

Please don't start new threads for the same problem.
Legend has it that reading the manual never killed anyone.
My site

#5 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 23 August 2006 - 10:51 PM

Look at the example

http://www.nstoia.co...stdir/index.php

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#6 rallokkcaz

rallokkcaz
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts
  • LocationSomewhere, CA (Cactus Area)

Posted 23 August 2006 - 10:53 PM

ok people your suggestions aren't helping :-\

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

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


#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 23 August 2006 - 11:09 PM

http://ca.php.net/ma...nction.glob.php
Legend has it that reading the manual never killed anyone.
My site

#8 rallokkcaz

rallokkcaz
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts
  • LocationSomewhere, CA (Cactus Area)

Posted 24 August 2006 - 04:28 AM

ok thanks for that help but i wanna show the images not the file
size and type

#9 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 24 August 2006 - 04:41 AM

<?php
foreach (glob("*.gif") as $filename) {
   echo "<img src='". $filename. "'>";
}
?>

Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users