Re: .htaccess

From: Date: Sun, 16 Feb 2003 16:38:53 +0000
Subject: Re: .htaccess
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25669@lists.php.net to get a copy of this message
Hi! 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... - .ma Matt <mpalermo@vt.edu> wrote@16.02.2003 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. > > Matt > >

« previous php.db (#25669) next »