04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Q: Wait a sec, what’s the “root<br />

folder” again?<br />

A: Up until now the root folder has<br />

just been the top-level folder for your<br />

pages. On the Web server, the root folder<br />

becomes even more important because<br />

anything inside the root folder is going to<br />

be accessible on the Web.<br />

Q: My hosting company seems to<br />

have called my root folder<br />

“mydomain_com”. Is that a problem?<br />

Getting your files to the root folder<br />

starbuzz<br />

there are no<br />

Dumb Questions<br />

A: Not at all. Hosting companies call<br />

root folders lots of different things. The<br />

important thing is that you know where<br />

your root folder is located on the server,<br />

and that you can copy your files to it (we’ll<br />

get to that in a sec).<br />

Q: So let me make sure I<br />

understand. We’ve been putting all our<br />

pages for the site in one folder, which<br />

we call the root folder. Now we’re going<br />

to copy all that over to the server’s root<br />

folder?<br />

You’re now one step away from getting Starbuzz Coffee on the Web:<br />

you’ve identified the root folder on your hosting company’s server<br />

and all you need to do is copy your pages over to that folder. But<br />

how do you transfer files to a Web server? There are a variety of<br />

ways, but most hosting companies support a method of file transfer<br />

called FTP, which stands for File Transfer Protocol. You’ll find a<br />

number of applications out there that will allow you to transfer your<br />

files via FTP; we’ll take a look at how that works on the next page.<br />

Here’s the root folder<br />

on the server.<br />

www.starbuzzcoffee.com<br />

<br />

.<br />

.<br />

.<br />

<br />

index.html<br />

<br />

.<br />

.<br />

.<br />

<br />

mission.html<br />

getting connected<br />

A Web Detour<br />

A: Exactly. You’re going to take all<br />

the pages on your own computer, and put<br />

them all inside your site’s root folder on the<br />

hosting company server.<br />

Q: What about subfolders, like the<br />

“images” folder. Do I copy those too?<br />

A: Yes, you’re basically going to<br />

replicate all the pages, files, and folders<br />

in your own root folder onto the server. So<br />

if you’ve got an “images” folder on your<br />

computer, you’ll have one on the server<br />

too.<br />

The files are sitting<br />

on your computer.<br />

starbuzz<br />

index.html<br />

mission.html<br />

You need to transfer them<br />

to the server, and then<br />

they’ll be “live” on the Web.<br />

you are here 131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!