I have a problem with my PHP that I do not know what's going on.
Currently, whenever I go back a folder in some directory I use ./
for example: "./javascript/jquery.js"
I do not know why this is happening, because the correct way to get back folders would be ../javascript/jquery.js
and this is messing up some processes. When I'm going to use include I also use include_once("./model/Produto.php")
and when I call this include somewhere else it gives the error failed to open stream: No such file or directory because it is ./ and not ../
Is there any way to fix this? Remembering that whenever my index.php uses .htaccess
in the middle of the page that uses a $_GET
that takes what was typed in the url and gives include_once("caminho/arquivo.php")
, can this influence something?
Edit1: if I use ../ to go back instead of ./ gives the failed to open stream: No such file or directory error in any directory