kigoobe Posted October 26, 2007 Share Posted October 26, 2007 Well, I am wondering if this will be possible to upload a bunch of files / folders to different folders at one go. I was thinking to give a different subfolders to different users (a bit like blogspot) say, like - jack.domain.com julie.domain.com etc. However, later if I need to upgrade anything, to add a new section that may contain a few folders and subfolders along with a few files, I was wondering if I can do that using a script, in php, selecting the subfolders' names, jack, julie, etc. For the moment I am thinking this won't probably be possible, still wanted to check this up with experts. Thanks. Quote Link to comment Share on other sites More sharing options...
kigoobe Posted October 26, 2007 Author Share Posted October 26, 2007 Well, I think I didn't ask the right question above. But now I can neither modify nor delete the post (I couldn't find the link, new here). So, I am redesigning my question here. ************************************************* I am thinking to structure a site with each user having their own space, like rudy.domain.com, spike.domain.com, etc. Now, if I have 900 users, with 900 subdomains, do I need to have the same files 900 times? Say the index.php inside each of the subfolders will have the same code, client side content of which will change depending on the login details. Like can I have an index.php somewhere, and when each of the folders will load, the same index.php (and all other files) will be called. Users will still see they are in their own space, say in vinnie.domain.com/index.php but that index.php will be physically located elsewhere. Is that possible, or I will have to upload the same index.php 900 times in each sub folders? Thought this is something that needs expert's advice, so I'm here. NB. If this question arises in someone's mind, in CP we can create subdomains thro' a script, that's not an issue. Quote Link to comment Share on other sites More sharing options...
NixNod Posted October 26, 2007 Share Posted October 26, 2007 Maybe you can put the INDEX.PHP on the INCLUDE_PATH of your system and them, put an INDEX.PHP that include that INDEX.PHP, so you will just have to change 1 file. Quote Link to comment Share on other sites More sharing options...
gazever Posted October 26, 2007 Share Posted October 26, 2007 Why would you have them as subdomains, why not keep them as maindomain.com/users/userfolderhere then in the users folder, have the index page, which pulls user info from a db for images etc. depending on which user is being viewed, then if there's login area restriction access probably much easier to control I have created image upload scripts which make directories, for each category etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.