Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Works... Linking the pages? 1

Status
Not open for further replies.

Gumby001

Programmer
Jan 24, 2007
21
US
Okay sorry for taking up alot of Thread Room but. I got apache to load my index.html when i type Now i try to test by putting a image in C:/ and in my index i put

<html>
<h>
Hello
<p>
<p>
<a href="C:\</h>
</html>

And in the folder Image i put

</html>
<h>
Images
<p>
<p>
<IMG SRC="C:\</h>
</html>

When i try to execute this action i type and get "Hello" and then 2 lines down i get "Image" which is a hyperlink. Now when i click this you would expect to go to another page where and image would be... but it just says Protocol isnt associated with any program so Firefox doesnt know how to open it.
 
You don't need to have the whole path to the image if it is in the same directory as the page where it is being called. You may also want to not use backslashes. Have you tried renaming it with .jpg to see if that works? Have you tried other formats like .gif? Other than those things I don't know why it shouldn't work.
 
Okay wow thank you very much everything works well, except now when it goes to the Image.html page there is a broken picture symbol. and i tried to change the name and the file type but nothing worked.
 
If you look at apache's error log, you may see that it can't find the image the link is pointing to. Double check for typos.
 
Says

[Thu Jan 25 08:34:19 2007] [error] [client 127.0.0.1] File does not exist: C:/
But thats not the text i type for loading the image...
 
Okay RhythmAce... Thank you so much for your help... It turns out i just fiddled around with different programs... I ran just apache alone, and thats why i had all these questions. I just installed WAMP5 and my image comes up clearly and i solved my .mp3 file problem... Thank you very much again much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top