Jump to content

hard drive folder


garevn

Recommended Posts

i tried both codes but the browser load and load all time and nothing happen..

<?php//Open images directory$dir = opendir("pics");//List files in images directorywhile (($file = readdir($dir)) !== false)   {   echo "filename: " . $file . "<br />";   }closedir($dir);?>

Link to comment
Share on other sites

Just put a line in your while loop that echos the images as an anchor. Edit That will give you the main idea so you can focus on making it pretty.

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...