0

Hi,

I have my project folder in www\project - for some reason, some of the images don't work and some do. All pictures are in the same path (project root) but some display a red cross and some display perfectly fine. As far as I know - theres no way to "deploy" with wamp so it can load the new images.

Sorry If I don't make sense, I'm new at php...

Thanks,
Ashton.

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by AshtonHogan
0

Might be there are some leading \'s in your img tags.

IE
src="\images\image.jpg" = \www\images\image.jpg
src="images\image.jpg" = \www\project\images\image.jpg

Also, if by deploy you mean make accessable outside your server. Just click on the Wamp icon in the system tray and click "Put Online"

by default Wamp only allows access from localhost

Hope this helps.

0

To go to the root folder you can use:

../image.jpg

or go to the root and then the map images like:

../images/image.jpg
0

Hi

Thanks a lot for your responses.

I found the problem. It wasn't a syntax or deployment issue but rather a problem with the images themselves. I don't know much about php or wamp but from what I can tell - one of them have limitations on what images you can use (Size, Bit Depth, etc). I just reduced the image size to < 100KB (It was 600KB+) and changed it to 16 bit and then it worked.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.