Where to place files needed for web pages

Sorry for my extremely simple question.

I have several php and html pages that need to be able to access some files (like image files) and display them.

Where should I put these files? Since I know that it is not recommended (for security reasons) to provide web pages access to files in the server file system (for example, in the home directory, for example).

I need to put files (images) in a folder where I have rights to create new files.

+4
source share
2 answers

you need to put the files in the virtual directory of your server, for example, if you use XMPP, then put your files in the "htdocs" folder. if you use wamp then put your files in "www"

please provide me more information so that I can better help you

+6
source

Add a directory inside your www folder and place your web pages there. Then you can access the pages as local / folder_name / page

0
source

All Articles