HTML file upload quaestion

  • Thread starter --+--Raven--+--
  • Start date
R

--+--Raven--+--

I am new to HTML, I have only taken a college course and read a bunch of
tutorials, but I can make basic web pages. My question is, when I design my
web pages, I save them and all the pictures and other web pages used as
links to a folder on my hard drive. Now, I may be getting ahead of myself
since I have never uploaded a site I have created, but when I do, will
people visiting my site be able to view those pictures, considering those
pictures are linked to my hard drive.

For example: IMG SRC="D:\Files\Web Pages\Dave's\go.gif"

Would they still be able to view that or would I have to change the
directory and where I save my files?

Thanks for your help! Also, I took out the tags just in case it would have
displayed my picture instead of the code (I am new, huh?)

R
 
T

Tina - AffordableHOST.com

Now, I may be getting ahead of myself
since I have never uploaded a site I have created, but when I do, will
people visiting my site be able to view those pictures, considering those
pictures are linked to my hard drive.

For example: IMG SRC="D:\Files\Web Pages\Dave's\go.gif"

Would they still be able to view that or would I have to change the
directory and where I save my files?


You don't want to link them to your hard drive. You want to link them to
where they will be in your account on the server. A *really* good tutorial
is: pagetutor.com

--Tina
 
G

Guest

--+--Raven--+-- said:
For example: IMG SRC="D:\Files\Web Pages\Dave's\go.gif"

Would they still be able to view that or would I have to change the
directory and where I save my files?

You are correct, visitors won't be able to see the links. What's worse,
it may *appear* to work when you test it because:

"D:\Files\Web Pages\Dave's\go.gif"

May actually exist *for you*.

Generally speaking, one should make all their links relative:

<IMG SRC="photos/go.gif">

Or (if it can't be avoided)

<IMG SRC="../photos/go.gif">

In some cases, this is unavoidable. In those cases, they should be links
like <IMG SRC=/photos.gif">

The trick here is that your local /photos/ has to be the same as the one
on the server.

Sometimes, it's useful to actually provide the full URL, but generally
it's a bad idea. (Applies mainly to CGI or server-level applications
that use a URL to supply a redirect)

Jamie
 
D

Dennis Marks

--+--Raven--+-- said:
I am new to HTML, I have only taken a college course and read a bunch of
tutorials, but I can make basic web pages. My question is, when I design my
web pages, I save them and all the pictures and other web pages used as
links to a folder on my hard drive. Now, I may be getting ahead of myself
since I have never uploaded a site I have created, but when I do, will
people visiting my site be able to view those pictures, considering those
pictures are linked to my hard drive.

For example: IMG SRC="D:\Files\Web Pages\Dave's\go.gif"

Would they still be able to view that or would I have to change the
directory and where I save my files?

Thanks for your help! Also, I took out the tags just in case it would have
displayed my picture instead of the code (I am new, huh?)

R
You will be assigned a directory on the web server. The name may be
something like http://www.StateCollege.edu/webpages/dave.

You will be allowed to place files in the directory dave and any
subdirectories that you create under dave. I recommend that you
maintain a complete copy in a directory on your computer called "dave".

All addresses will be relative to "dave". For example "index.html" will
be assumed to be in the directory dave. "pictures/aa.jpg" will be the
pictures subdirectory of dave.

All files must be on the web server. No one can access your computer
except you.

BTW: Dave's might cause a problem due to the apostrophe.
 
T

Tina - AffordableHOST.com

Dennis Marks said:
You will be assigned a directory on the web server. The name may be
something like http://www.StateCollege.edu/webpages/dave.

You will be allowed to place files in the directory dave and any
subdirectories that you create under dave. I recommend that you
maintain a complete copy in a directory on your computer called "dave".

All addresses will be relative to "dave". For example "index.html" will
be assumed to be in the directory dave. "pictures/aa.jpg" will be the
pictures subdirectory of dave.

All files must be on the web server. No one can access your computer
except you.

BTW: Dave's might cause a problem due to the apostrophe.


Yes, I would recommend you keep all the folder and file names simple and all
lowercase with only alphanumeric characters.

--Tina
 
R

Richard

--+--Raven--+-- said:
I am new to HTML, I have only taken a college course and read a bunch of
tutorials, but I can make basic web pages. My question is, when I design my
web pages, I save them and all the pictures and other web pages used as
links to a folder on my hard drive. Now, I may be getting ahead of myself
since I have never uploaded a site I have created, but when I do, will
people visiting my site be able to view those pictures, considering those
pictures are linked to my hard drive.

For example: IMG SRC="D:\Files\Web Pages\Dave's\go.gif"

Would they still be able to view that or would I have to change the
directory and where I save my files?

Thanks for your help! Also, I took out the tags just in case it would have
displayed my picture instead of the code (I am new, huh?)

R

They will see the images as long as you are online.
That is why you upload the images to the server and link accordingly.
If you now have the images in the same directory as your web page, the tag
line would show <img src="image1.jpg">.

It's not necessary to show the entire path ON YOUR machine.
If you have a folder on the server named images, then your tag would read
<img src="images/image1.jpg">.

Another reason not to link to your machine is that YOUR machine responds
extremely slow compared to a server. Besides, your ISP may not approve of
it.
 
R

--+--Raven--+--

Thanks a lot for all your help, especially the website pagetutor.com. This
has really cleared up a lot of my confusion and hopefully I will have my
site up soon.

Thanks again,

R
 
F

Friendly

They will see the images as long as you are online.

Another reason not to link to your machine is that YOUR machine responds
extremely slow compared to a server. Besides, your ISP may not approve of
it.


Nowhere in "D:\Files......." is there any indication of an IP address.

Just how would anybody be able to link to his machine?? And how do you
know that his box isn't connected to a T-1 line?


FS
 
H

Hywel

Richard said:
They will see the images as long as you are online.

Really? I have a local "d:" drive, so the browser would attempt to get
the files from there. When the browse figures out that the path is
missing, I'll get a broken image. There's nothing in the code snippet
--+--Raven--+-- posted that could even hint at where the image is
located on the network. How could you possibly draw that conclusion?

Another reason not to link to your machine is that YOUR machine
responds extremely slow compared to a server.

How do you know? I have machines at home that are no doubt far quicker
than most web servers. Factor in the 1.5Mbit cable connection that
could serve my site, and that's a load of bandwidth for one web site.

Besides, your ISP may not approve of it.

At last, some sense.
 
T

Tina - AffordableHOST.com

Richard said:
design

They will see the images as long as you are online.


No they won't. If I visit a site that points to an image on a D:
drive...its going to look for that image on MY computer.

--Tina
 
R

Richard

Tina - AffordableHOST.com said:
No they won't. If I visit a site that points to an image on a D:
drive...its going to look for that image on MY computer.

Correct you are. I forgot that the referral would be to the calling machine
and not the hosting machine.
 
R

Richard

Hywel said:
Really? I have a local "d:" drive, so the browser would attempt to get
the files from there. When the browse figures out that the path is
missing, I'll get a broken image. There's nothing in the code snippet
--+--Raven--+-- posted that could even hint at where the image is
located on the network. How could you possibly draw that conclusion?



How do you know? I have machines at home that are no doubt far quicker
than most web servers. Factor in the 1.5Mbit cable connection that
could serve my site, and that's a load of bandwidth for one web site.

Lucky you. My cable system reports only roughly 256kb on an average.
As I have experiemented hosting a site locally, it is rather slow when
others access it.
And once you host your site on a local machine like that, there are other
rules to live by that must be adhered to.
So are you willing to babysit your machine 24 hours a day 365 days a year?
In the long run, you're better off hosting the site with a regular host
who's job it is to make sure things work all the time and who have the
proper servers to do it with.
 
M

Mark Parnell

<snip>

Please stop changing your from address until you have something
worthwhile to contribute. It messes up my killfile.
 
H

Hywel Jenkins

Lucky you. My cable system reports only roughly 256kb on an average.

That's irrelevant.

As I have experiemented hosting a site locally, it is rather slow when
others access it.

My 2.4gHz P4 with 2GB RAM has no trouble like that.

And once you host your site on a local machine like that, there are other
rules to live by that must be adhered to.
So are you willing to babysit your machine 24 hours a day 365 days a year?

Why? That's what server monitors are for. Do you think a hosting
provider has some grunt sitting with machines 24x7x52? Nope. They have
software that monitors servers and then beeps them if a server goes
down.

In the long run, you're better off hosting the site with a regular host
who's job it is to make sure things work all the time

No argument from me on that, but your first comments were absurd and
generally wholly inaccurate. No change there.
and who have the
proper servers to do it with.

I have a proper server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top