Normally one would read that folder with read() and echo all the files
makeing hrefs like this:
$dir = open('/home/username/public_ftp/incoming/');
while($file = $dir->read())
echo '<a href="'.$file.'">'.$file.'</a><br>'."\n";
Don't forget to make sure, that the path is ok within the href...
Matt <[EMAIL PROTECTED]> [EMAIL PROTECTED] 17:30 Uhr:
> Hey, this isn't totally a php question, but I would appreciate if anyone has
> any advice for me.
> I have a php script that accesses a folder, and displays all the photos
> inside the folder. I want to use this script to display images that people
> upload from the anonymous ftp account. I know that when they upload a photo,
> it goes into the:
> /home/username/public_ftp/incoming/ folder
> Is there a way to access the photos in that folder and display them in
> internet explorer. Someone mentioned using the .htaccess file and adding a
> line to create an alias for the folder. Can anyone help me out with this?
> What directory does the .htaccess file have to be in, what do I type in to
> create the alias for the folder, etc.... Thanks guys.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php