Trium918 Posted June 9, 2007 Share Posted June 9, 2007 What is the structure of a php file system on a shared host? I asked because on a dedicated server there is a public_html folder which contains the files that the user can view. Then there are files above public_html that only the administrator can view. I am trying to understand the correct way to do this on a shared host.Would I set up the structure the same way as if it was on a dedicated server? Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/ Share on other sites More sharing options...
soycharliente Posted June 10, 2007 Share Posted June 10, 2007 My shared hosting has a /www and then /c /h because the name of my domain is charlieholder.com Does that help? Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271610 Share on other sites More sharing options...
Trium918 Posted June 10, 2007 Author Share Posted June 10, 2007 My shared hosting has a /www and then /c /h because the name of my domain is charlieholder.com Does that help? Ok, I have a set up similar to that as well. I was thinking more on where to place index.php, database files etc. Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271611 Share on other sites More sharing options...
Trium918 Posted June 10, 2007 Author Share Posted June 10, 2007 *bump* Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271861 Share on other sites More sharing options...
soycharliente Posted June 10, 2007 Share Posted June 10, 2007 Inside the last letter folder, I have a folder that is my domain. I just put everything in there. Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271880 Share on other sites More sharing options...
Trium918 Posted June 10, 2007 Author Share Posted June 10, 2007 Inside the last letter folder, I have a folder that is my domain. I just put everything in there. How do you protect them for the users? Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271881 Share on other sites More sharing options...
Hypnos Posted June 10, 2007 Share Posted June 10, 2007 Protect what from who? People accessing the server can't read your PHP code, as long as it has the .php extension. Any request they make for it, will just give them the output of the ran script. Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271884 Share on other sites More sharing options...
Trium918 Posted June 10, 2007 Author Share Posted June 10, 2007 Protect what from who? People accessing the server can't read your PHP code, as long as it has the .php extension. Any request they make for it, will just give them the output of the ran script. No, I was wondering how to organize my files and folders on shared hosting account. I understand that is is different from a dedicated server, but I don't know what the structure would be. Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271888 Share on other sites More sharing options...
Hypnos Posted June 10, 2007 Share Posted June 10, 2007 It's not any diffferent, really. The hosted directory is still the hosted directory. Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271890 Share on other sites More sharing options...
jaikar Posted June 10, 2007 Share Posted June 10, 2007 the structure does not depends on the server type, it depends on the hosting company, all the other are same, some company has www as the root, some have public_html, some have html, some have your account name.... if you are not sure about the directory, its always better to contact the technical support, they will definitly help you soon.. ~J Quote Link to comment https://forums.phpfreaks.com/topic/54913-question/#findComment-271901 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.