PDA

View Full Version : Help with stream lining a HTML page


cocoonfx
04-12-2008, 03:20 AM
Hello All


I am trying to create a PHP page which will make my life easier until i can sort out a MySQL database.

Basically i have 105 images sitting on a web server.

As you can see from this link i have already managed to create a page in HTML but i want to be able to do this in PHP and be able to have an array or a variable which will look at the folder with the images and pull the image and file name similar to the link.

http://www.somethingsiam.com/products.html

Can anyone suggest how to do this as i am stumped?

Regards
Cocoonfx

edbr
04-12-2008, 05:57 AM
this reads file names in your folder
<?php
$folder=dir("uploads");

while($folderEntry=$folder->read()){
echo $folderEntry."<br>";
}

$folder->close();

?>

cocoonfx
04-12-2008, 09:42 AM
Thanks that is excellent :grin: