View Full Version : Resolved Pictures not imported with PHP include

10-15-2009, 08:46 PM
Hi everyone,

I use local Wamp Server on WinXP to test my html pages and use php includes. My problem is that none of the jpg's or gif's are imported but everything else is.

Any suggestions? Here is the code that is embedded in the php page that is being included:

<p class="maintext"><span class="h2">Your Shopping Cart</span><span class="h1"><img src="../general/cart.gif" width="15" height="11" alt="cart"></span></p>
<p class="maintext">Number of items in your Shopping Cart: </p>
<p class="maintext"><a href="shoppingcart.html">View Shopping Cart</a></a></p>
<p><img src="../general/translogo_1.jpg" width="180" height="243" /></p>

Cape Town.

10-15-2009, 08:56 PM
Gotta be a path problem:

I'm guessing the path should be ./ not ../
But of course, we can't see your website, so there's no way for us to tell.

What are we supposed to do without being able to see your site?

10-15-2009, 09:36 PM
Hi mlseim,

What a silly problem - and easy to solve! Dreamweaver by default seems to put 2 dots ../ before the location url. I just removed one dot and everything worked 100%

Thanks very much!