我想通过header.php文件显示与图像文件相同的目录。如何显示通过子目录PHP文件在超目录PHP文件中显示的图像?
以我的header.php使用< IMG SRC = “image.jpg的”>显示图像, 但我的index.php是子目录,并使用包括( '../的header.php');。
=== image.jpg
=== header.php
=== new folder
====== index.php
是的,图像不会显示这种方式。 因为在index.php中也会有< img src =“image.jpg”>像我包含的header.php。
无论如何显示从index.php通过header.php图像?