320 likes | 430 Views
HTML. ATS 315. A Web Server. Is a computer program that sends out (“serves”) files when they are requested by a “client”. Which files to serve?. Only files inside your public_html directory! (So mkdir a directory called public_html!). public_html. Which files to serve?.
E N D
HTML ATS 315
A Web Server • Is a computer program that sends out (“serves”) files when they are requested by a “client”.
Which files to serve? • Only files inside your public_html directory! • (So mkdir a directory called public_html!) public_html
Which files to serve? • By default, the server will serve a file called index.html. • Therefore, in today’s assignment you will write a file called index.html inside your public_html directory. A Web Page!
Your Web Page • http://wx-sun3.creighton.edu/~yourlogin • This is slightly different than what it says in the text!
Hello Hello
<B>Hello</B> Hello
<CENTER>Hello</CENTER> Hello
<BIG>Hello</BIG> Hello
Hello Hello
<I>Hello</I> Hello
<U>Hello</U> Hello
Hello Hello
Hello<BR>How’s the weather? Hello How’s the weather?
Hello<IMG SRC=cloud.gif>cloud! cloud! Hello
Getting Graphics Files for Your Web Page • Steal them from other web sites • Digital cameras • Draw something in Paint, Illustrator, etc. • The trick is getting them onto wx-sun1 and into the public_html directory!
ftp ftp • File Transfer Protocol
ftp • first step: Put your graphics images someplace “easy to find” on a PC. • Where’s that? • Ideally, C:\ • C:\standard • NOT a directory with a “space” in the name!
ftp • second step: connect to wx-sun1 via ftp • Start • Run • ftp wx-sun1.creighton.edu • Enter your login and password.
ftp • third step: Get into the right directories. • You are in your home directory on wx-sun1… you need to cd to public_html cd public_html
ftp • third step: Get into the right directories. • Who knows where you are on your PC… you’ll need to lcd (“local change directory”) to wherever the images are! lcd c:/
ftp • fourth step: Get ftp into the right “mode”. • Image files are “binary”, so type “bi”. bi
ftp • fifth step: Put the files from the PC onto wx-sun1. • put tornado.gif
ftp • sixth step: Quit ftp. • quit