I have the following structure:
/help/
admin/
index.php
imagens/
botoes/
botao1.jpg
botao2.jpg
SISTEMA1/
paginas/
pagina1.htm
pagina2.htm
imagens/
imagem1.jpg
imagem2.jpg
SISTEMA2/
paginas/
pagina1.htm
pagina2.htm
imagens/
imagem1.jpg
imagem2.jpg
SISTEMA3/...
Within admin, I have index.php
, in it, I'm taking content from pagina1.htm
which is in SISTEMA1/paginas/
through the function php file_get_contents()
MY PROBLEM
I have images in the file pagina1.htm
with the following src=""
:
src="../imagens/imagem1.jpg"
src="../imagens/botoes/botao1.jpg"
The image of botao
appears, that is, I am inside the admin in my index.php
returning a folder I vo enters imagens
and inside images has the botoes
folder. But the imagem1.jpg
image will not find, because it is inside the SISTEMA1/imagens
folder
That is, I needed to find a way to resolve this, kkk, I tried to use chdir()
of PHP
but I did not succeed, thank you
NEARLY RESOLVED
When I "printo" img appears, but when I put it inside a text editor it does not appear: