With picture1.jpg and menubar.php in the same “resources” folder, this line in anyfile.php calls the picture file just fine --
Code: Select all
<img src="/resources/picture1.jpg">Code: Select all
<?php include("/resources/menubar.php"); ?>doesn’t call the menubar.php file (doesn’t do anything).
Either of the following variations does work, if I put menubar.php respectively up one level or down one level in folder “nav” --
Code: Select all
<?php include("../menubar.php"); ?>Code: Select all
<?php include("nav/menubar.php"); ?>Does php not use the “/” convention for specifying the root folder, as html does?
Thank you.