Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2001, 12:09 AM
elsteamola elsteamola is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 7 elsteamola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re: icons and img src

Can someone help me with how to write the correct path for inserting
icons on an html page on an Apache virtual server running on a pc?
I'm talking 'what's the path after <img src='?
I've got the 'powered by Apache' gif to show, but that was by putting
the test page in the same dir as the Apache icon I wanted to use. So all I did was name the gif file I wanted. I also need a gif file in a
subdir of that. Do I give the full path (e.g., C:/Program
Files/Apache Group/etc/etc)?
Do the slashes go forward or backward?
PC directory slashes go back, but Apache slashes go foward. Which way
should my slashes go?
And what is the rule for the ellipses (the dots that prepend a
directory listing (../))?
Is the ellipses to show for ServerRoot, or is it something else?
Jeez, I'm asking which way and how!

Please help! I'm pulling my hair out with this.

Thanks!!
elsteamola

Reply With Quote
  #2  
Old August 22nd, 2001, 01:06 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I'm talking 'what's the path after <img src='?

That's the absolute path under your docroot . Or it could also be relative path of your current document. Win32 or UNIX no different.

>> Do I give the full path (e.g., C:/Program Files/Apache Group/etc/etc)

You never put any server path in html files, URL path only.

The root URL path = docroot

Reply With Quote
  #3  
Old August 22nd, 2001, 02:18 AM
elsteamola elsteamola is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 7 elsteamola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re: img src and icons

Thanks for the reply.
I moved the file in question to the same folder and still no luck.

Here's what I've got:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html>
<head>
<title>Apache Test for Enriquillo</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red
(active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<h1 ALIGN="CENTER">ENRIQUILLO</h1>
<h3 ALIGN="CENTER">&copy 1998 Translation by George Hernández</h3>
<div align="center" "bottom">
<img src="rainbow.gif" alt="" /></div>
<div align="center" "bottom"><img src="apache_pb.gif" alt="" /></div>
</body>
</html>

I haven't written html for about two years, but even putting both gif files in the same dir won't work.

Reply With Quote
  #4  
Old August 22nd, 2001, 02:29 AM
elsteamola elsteamola is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 7 elsteamola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re: img src and icons

Thanks for the reply.
I've moved the gif in question to the same folder and, while viewing through my browsers, the gifs showed up on all except the HotJava browser. The IE browser tends to crowd the gifs together, while Opera and Netscape look ok.

Here's the code. Any pointers would be greatly appreciated.
Humbly,

elsteamola

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html>
<head>
<title>Apache Test for Enriquillo</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red
(active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<h1 ALIGN="CENTER">ENRIQUILLO</h1>
<h3 ALIGN="CENTER">&copy 1998 Translation by George Hernández</h3>
<div align="center">
<img src="rainbow.gif" alt="" /></div>
<div align="center" vertical="bottom">
<img src="apache_pb.gif" alt="" align="bottom" /></div>
</body>
</html>

Reply With Quote
  #5  
Old August 22nd, 2001, 07:44 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Do not mess with the Apache default icons directory (don't put anything there), that's for global use. Invent another directory name like images.

Reply With Quote
  #6  
Old August 22nd, 2001, 08:26 PM
elsteamola elsteamola is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 7 elsteamola User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re: icons

thanks for the reply.

I've gotten all browsers displaying all icons, and yes, I will move everything over to a new dir. I've got alot of questions in alot of categories. You've been prompt with your answers.
Cool.

elsteamola

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > re: icons and img src


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway