Just a quick question about how paths are handled by includes VS images. Godaddy has some weird stuff going on with their hosting packages. $_SERVER['DOCUMENT_ROOT'] alone wouldn't work, so I logged in to their website and found my root folder. Turns out it was adding an extra folder, so I wrote the first two lines line below.
$root=substr($_SERVER['DOCUMENT_ROOT'], 11);
include($root . "/_inc/M4.php");
echo '<img src="' . $root . '/_images/1.jpg">';
Works perfectly. Next, I tried to use it to call an image, but not matter what I do, it just won't work. The .jpg is there and the _images folder is correct. If I call it from the root at "/_images/1.jpg" is displays fine. Is there a difference in linking an include, and calling an image?(path wise).
Can anyone see a problem? (I figured a different way of doing this, but it's really bothering me...When can I use it, and when not)