Problems with image when using include

0

I'm developing a website and after developing most of the files, I've decided to organize them in their respective folders.

localhost / nomedosite / - root folder
localhost / nomedosite / includes / - folder where are navs, admins, footers
localhost / nomedosite / uploads / - folder containing image uploads
localhost / nomedosite / includes / adminbar.php - this administrative bar has in its code a php excerpt with echo from a url stored in the database. Home localhost / nomedosite / restricted / - folder where are the files for users of restricted access
localhost / nomedosite / restricted / home.php - home page for logged in users.

Well, the error I'm facing is the following, since I put the files in the new folders, the images stopped appearing and when I go to check the url of them, the url I get is the following: Home restricted / uploads / imgs / users / 4153eb08425b193e0092b9cbeb509d62.jpg

Being what it is is:

/uploads/imgs/users/4153eb08425b193e0092b9cbeb509d62.jpg

That is, the file "pulls" the current folder path, this error occurs only when the files are in the subfolders, when all files were in the root folder, no error appeared.

    
asked by anonymous 29.07.2017 / 00:57

0 answers