First, i'd like to show you my directories
--themes
-- images
-img1.jpg
-index.php
-index.php
My index.php (root) :
<?php
require_once '/themes/index.php';
?>
And, the index.php in the template :
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<img src="images/img1.jpg">
</body>
</html>
I think it will load themes>>images>>img1.jpg
But, it loads images>>img1.jpg which not exists.
So, I use the dirname<img src="<?php echo __DIR__ . '/';?>images/img1.jpg">
But, instead of localhost, it use the C: directory which is forbidden
Can you tell me how to solve the problem ?