View previous topic :: View next topic |
Author |
Message |
jzubiaga -
Joined: 07 Jan 2005 Posts: 1
|
Posted: Fri Jan 07, 2005 6:06 pm Post subject: Problem with my Images(IMG tag) |
|
|
Why the images of html and ASP that I serve with the web server don't Show up. But if I load my html file directly on the browser, the images show up.
If I open the source of the HTML served by the web server the IMG tag desapere.
Help. |
|
Back to top |
|
|
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Fri Jan 07, 2005 8:38 pm Post subject: |
|
|
could we see the source code of the pages you've got problems with?
--
i would guess that you've set absolute paths (eg: C:\Program Files\Abyss Web Server\htdocs\image\file.name). this would prevent the images being viewed by anyone who wasn't sat at the computer where the HTML files are being served from.
But without the source code it's difficult to workout the exact thing that's causing this problem. _________________ Olly |
|
Back to top |
|
|
senshi -
Joined: 05 Nov 2003 Posts: 385 Location: UK
|
Posted: Sun Jan 09, 2005 12:42 pm Post subject: |
|
|
always use paths that are relative to the site root, never use absoloute paths, you cannot just link to anything on your server, you have to either do 1 of two things...
create a folder in which to dump all the images and other items littered about your my documents folder and then add a virtual path to that folder, the folder would be best placed in the servers root (Not servers root, not site root!) and use the virtual path reference to that folder in your site code
OR
you move the actual images into the servers root path and use relative paths to the site root in your code
Unless you grasp this basic method of working with paths and folders, you will always have problems, it would be worth your while to stop and study the different methods of accessing content on your PC. |
|
Back to top |
|
|
|