1 / 31

LECTURE 1

LECTURE 1. Introduction of Web programming Ins. Elaf Alhazmi. What is Internet . When two or more networks are connected, they become internetwork , or internet . Network : is group of connected communicating devices such as computers and printers.

courtney
Télécharger la présentation

LECTURE 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LECTURE 1 Introduction of Web programming Ins. Elaf Alhazmi

  2. What is Internet • When two or more networks are connected, they become internetwork, or internet. • Network : is group of connected communicating devices such as computers and printers. • Internet is two or more networks that can communicate with each other • Internetis a worldwide telecommunications system that provides connectivity for millions of other, smaller networks; therefore, the Internet is often referred to as a network of networks. It allows computer users to communicate with each other across distance and computer platforms Ins.Elaf Alhazmi

  3. What is Internet • Today most end users who want Internet connection use the services of Internet service providers (ISPs). • Internet services providers (ISPs). ISP is organization with one or more servers of local ISP by establishing service contract and paying fee. • No company / or person owns the internet. it is a cooperative effort governed by system of standards and rules. • The purpose of connecting computers together is to share information Ins.Elaf Alhazmi

  4. TCP/IP protocols • The two most important protocols allowing computers to transmit data on the Internet are … • Transmission Control Protocol (TCP) • Internet Protocol (IP). With these protocols, virtually all computers can communicate with each other • The Internet Protocol (IP) defines how data packets are sent across the Internet. It is like a mechanism for transmitting packets between source and destination Ins.Elaf Alhazmi

  5. What is World Wide Web • The Internet is the collection of the many different systems and protocols. • The World Wide Web (WWW), is repository (مستودع) of linked information spread all over the world.www, developed in 1989 Ins.Elaf Alhazmi

  6. Difference between “Internet” & “WWW” • The terms Internet and World Wide Webare often used interchangeably in everyday speech. • The Internetis a particular global computer network connecting millions of computing devices • The World Wide Web or Web is just one of many services running on the Internet. The Web is a collection of interconnected documents (web pages) and other Web resources, linked by hyperlinks and URLs Ins.Elaf Alhazmi

  7. Internet Application • The main task of the internet is to provide services for users. • Electronic mail (exchange of messages between two entities) • File transfer (copying file one computer to another) • Remote login (is a client-server application used to log into another computer on the Internet) • Accessing World wide Web (WWW) Ins.Elaf Alhazmi

  8. Web Servers & Web Browsers • Web page : a single document that is placed on internet • Website : collection of web pages • Web client/ browser: it requests for information • The software that request for information is called the client. On the web, the browser is the client software that makes request for documents. Ins.Elaf Alhazmi

  9. Web Servers & Web Browsers • Web server : it has websites stored, it accepts request from client and sends back information • Web browser is piece of software on your computer or mobile device that you use to access web pages on websitesFor example • Microsoft Internet Explorer • Google Chrome • Mozilla Firefox • Safari • opera Ins.Elaf Alhazmi

  10. Components of the WWW • To use the WWW you need Three components… • Browser (To display web pages) • Servers ( Store Web sites) • Hypertext Transfer Protocol (HTTP) Ins.Elaf Alhazmi

  11. Hypertext Transfer Protocol (HTTP) • HTTP is protocol used mainly to access data on the World Wide Web. • The idea of HTTP is very Simple. Client send a request to server, and then the server sends the response. Ins.Elaf Alhazmi

  12. Client-Server Architecture • The Web has a client-server architecture with three fundamental components • Web (client) browsers • Network • Web servers The request and response are handled via HTTP protocol, It can be used to transfer images, audio, videos etc all other web resources Ins.Elaf Alhazmi

  13. Addresses • To identify one particular HTTP site, the client usesUniform Resource Locator(URL) • Uniform Resource Locator(URL) is standard for specifying any kind of information on the internet. The URL defines four things • Method/protocol • Host name • Port • Path Ins.Elaf Alhazmi

  14. Uniform Resource Locator(URL) • For example… • http://www.yahoo.com • Protocol : HTTP • Host: It has the website • Port : 80 for HTTP (optionally) • Path: location of file http://www.yahoo.com:80/index.html Host Protocol PORT Path Ins.Elaf Alhazmi

  15. Protocol • The protocol part of an URL is the funny string of characters that you see before the hostname. Examples are http, ftp, telnet:, etc. They are separated from the hostname with a colon and two forward slashes ( :// ). These protocols tell your browser what type of service to use when you connect with the web browser to the hostname. If you leave the protocol off your address, by default the Web Browser will assume you are using the HTTP protocol, which is for connecting to web sites, so there is no need to type in the http:// every time you go to a web site. If you specify • another protocol like ftp, then the browser will act as an ftp client that will enable you to connect to a ftp server to download files. Ins.Elaf Alhazmi

  16. Hostname • The hostname is the address you are going to. For example, if you are going to the address http://www.bleepingcomputer.com, then www.bleepingcomputer.com is the hostname. Ins.Elaf Alhazmi

  17. Port Number • The port number is a number that you can append to the hostname with a colon ( : ) between them. For example http://www.bleepingcomputer.com:80. If you leave the port number off, which almost everyone does, then the browser will automatically use port 80 as that is the default port for the http protocol. Reserved Ports • 80: Hypertext Transfer Protocol (HTTP) • 20: File Transfer Protocol (FTP) • 22: Secure Shell (SSH) • 23: Telnet • 25: Simple Mail Transfer Protocol (SMTP) Ins.Elaf Alhazmi

  18. Path • This is the path on the server, culminating with the filename you are trying to reach. For example, the URL http://www.bleepingcomputer.com/examples/example1.html. The path in this case is /examples/example1.html. This path corresponds to an actual directory structure on the web server. So on the web server there is a root directory, an examples directory underneath that root directory, and a file called example1.html underneath that. Ins.Elaf Alhazmi

  19. Domain name Server (DNS) An Internet address has four fields with numbers that are separated by periods or dots. This type of address is known as an IP address. For example 131.247.120.10 Domain Name System (DNS) was developed to translate the numerical addresses into words for example http://fcit.usf.edu/ Ins.Elaf Alhazmi

  20. Domain name Server (DNS) • (DNS) is Unique name that identifies an entity, whether that be an single individual or a company, on the Internet • It’s a part of host name in URL • Domain Names always have 2 or more parts separated by the dots . www.yahoo.com • The left most part is a specific name like yahoo • This is a unique name and there cannot be any duplicates on the rest of the Internet that are used by anyone else. • The right most part is top level domain (TLD) like .com, .edu, .govect Ins.Elaf Alhazmi

  21. Domain name Server (DNS) • There are 2 different types of TLD • Country code top level domain • General top level domain • Country code (cc)TLD specifies the country and only2 letters are used like .sa , .ca , .au , • Generic TLD(gTLD) used 3 or more letters like .com, .edu, .gov Ins.Elaf Alhazmi

  22. Country code top level domain • .au Australia • .de Germany • .fr France • .nl Netherlands • .uk United Kingdom • .us United States • General top level domain • .com Commercial • .edu Educational • .gov Government • .net Networking Providers • .org Organization • .mil United States Military Ins.Elaf Alhazmi

  23. Cookies • A cookie is information that a Web site puts on your hard disk so that it can remember something about you at a later time. • A cookie is a mechanism that allows the server to store its own information about a user on the user's own computer • The location of the cookies depends on the browser • The main purpose of cookies is to identify users and possibly prepare customized Web pages for them. Ins.Elaf Alhazmi

  24. Cookies Type • There are two types of cookies • Session Cookies • Persistent Cookies Ins.Elaf Alhazmi

  25. Session Cookies • Session Cookies • a cookie that is erased when the user closes the Web browser • Session cookie has short time set for expiration like 20 min, 30 min, 2 hours, 8 hours • Session cookies do not collect information from the user’s computer Ins.Elaf Alhazmi

  26. Persistent Cookies • Persistent Cookies • cookie that is stored on a user’s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie • Persistent cookies are used to collect identifying information about the user Ins.Elaf Alhazmi

  27. Documents on the WWW • The documents on the WWW can be grouped into three categories • Static documents • Dynamic documents • Active documents Ins.Elaf Alhazmi

  28. Static Documents • Static documents are fixed-content documents that are created and stored on server. • The client can only get copy of the document • The contents are determined when the file is created, not when it is used. • Programming languages • Hypertext Markup language (HTML) • Extensible Markup Language (XML) Ins.Elaf Alhazmi

  29. Dynamic Documents • Dynamic document is created by web server whenever a browser requests the document. • The server returns the output of the program as response to the browser that requested the document.( because fresh document is created for each request). • Dynamic document Shows different information to different users. Ins.Elaf Alhazmi

  30. Dynamic Documents • Programming languages • Common Gateway Interface (CGI) • New technology, it allows programmers to use several languages C,C++… etc • Scripting technologies • Hypertext preprocessor (PHP) • Java Server Pages (JSP) • Active server Pages (ASP) Ins.Elaf Alhazmi

  31. Active Documents • Active documents are able to run program or script at the client site. • The server send copy of document or script to client • For example, to run a program that creates animated graphics on the screen. • Programming languages • Java applets • Java script Ins.Elaf Alhazmi

More Related