Browsing remote folders

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if a DocumentIndex catches the request, then yes. However, if there is none, and the DirectoryOptions are set to actually show a directory list, the it's possible. But the directory list is the LAST thing the server will look at comparitively..
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Hmmm, and I guess there's no way to access it with a script right? Even if it is the last thing, can it somehow be accessed?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if it's caught by the other options, not that I know of..
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Darn...:(
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

evilmonkey wrote:The content I want to find is not linked anywhere. It's a lone file sitting somewhere within a directory, not linked to anything, not linked by anything, and I want to find it. For that, I need to open the directory that It's in, get it's listing, then if there are directories in there, get thir listing, and so fourth, until I find that file.
If files are not linked presumably it's because they are not intended for public viewing. Why do you want to do this?
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

I'm trying to make a file management system between two of my servers. It's for admins only, to see what files are on what server. Mostly to prevent people from logging in and out of FTP. But I guess that's what'll have to happen if I can't do this. I deem it unsafe to have an FTP connection made by a PHP script, especially to a remote server.
Breckenridge
Forum Commoner
Posts: 62
Joined: Thu Sep 09, 2004 11:10 pm
Location: Breckenridge, Colorado

Post by Breckenridge »

yes ftp is it. Also you can write a script on the remote server to compile a list of your files / dirs and then obtain it via http/https!
Post Reply