Jump to content

Archived

This topic is now archived and is closed to further replies.

benjoewilson

Images on Local host

Recommended Posts

I have installed php and IIS on my laptop but am pretty clueless on any set up further than that. All works fine except when I view images they are jumbled. The same happens in IE, mozilla and Netscape.

If I enter the address as below it comes out disjointed and jumbled.

[a href=\"http://localhost/pictures/activities/test.jpg\" target=\"_blank\"]http://localhost/pictures/activities/test.jpg[/a]

If I enter the address

file:///C:/Inetpub/wwwroot/pictures/activities/test.jpg

It comes out fine.

It also comes out fine when I upload it online which is based on an apache server. This is happening for the majority of my jpeg images, I have tried switching an image to GIF and it still happens.

Any ideas appreciated.

Share this post


Link to post
Share on other sites
You might find it will work if you use the IP address instead of local host.

[a href=\"http://127.0.0.1/pictures/activities/test.jpg\" target=\"_blank\"]http://127.0.0.1/pictures/activities/test.jpg[/a]

I am not quite sure what you mean by disjointed and jumbled.

Do you see the image or not?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.