A question for windows users...

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

Post Reply
Kydosan
Forum Newbie
Posts: 3
Joined: Tue Jul 13, 2004 3:12 pm

A question for windows users...

Post by Kydosan »

I'm in the process of porting a script to windows, but I don't have, and never have had a windows hosting account - I've put IIS on my girlfriend's PC but that's not qute the same :)

What I really need to know is how hosting companies set up their IIS servers, part of the code I've written opens an ftp connection to localhost and uploads some files - finding the path to ftp to is easy in Linux, I can pretty much just grab the fileowner of the path and take everything after /home/$username as the ftp path... Under Windows I won't have the luxury of having a fileowner and correlating it to a home directory.

Yeah I know, "blah blah blah, get to the point" :D

The question's a simple one - how are IIS servers set up in the wild? I'm assuming it's not C:\Inetpub\wwwroot\$ftp_username... or is it? can I strip just strip everything up to a directory with the same name as the user's account like in Linux? Or are the home directories and main ftp accounts called different things in Windows?

*sigh*, the more I talk about this the more I think I should just make the user enter the path, rather than trying to figure it out for them, but ease-of-use is the order of the day :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

from what I remember, it's entirely optional whether there are home directories. They can be set to anything accessable to the server..

I'd go for: enter the path please. :D
Post Reply