Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/54913-question/
Share on other sites

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.

 

Link to comment
https://forums.phpfreaks.com/topic/54913-question/#findComment-271888
Share on other sites

 

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

Link to comment
https://forums.phpfreaks.com/topic/54913-question/#findComment-271901
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.