0
Server document root not working?
OK, this might seem stupid but still, what I'm trying to do is get the image folder and get a certain image from public_html because it's a header. It's currently broken and the site link is https://vespr.xyz/, go to the catalog and then on the top left the logo isn't there, I'm trying to fix that but here is some of the code: <?php $documentimg = $_SERVER["DOCUMENT_ROOT"]."/img/vespr2.png"; ?> <a href="https://vespr.xyz/" class="navbar-left"><img src="<?php echo $documentimg;?>" width="50px" height="50px"></a>
1 Answer
0
Shouldn't need a docroot in this situation. Just have the img url be /img/vespr2.png