Jump to content

Images on Local host


benjoewilson

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.
Link to comment
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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.