Sponsored Content
Top Forums Web Development Fundamental question on web development Post 302540226 by pludi on Wednesday 20th of July 2011 04:39:06 AM
Old 07-20-2011
Let's start with you entering an address in the browser, for example https://www.unix.com/web-programming/. This is called an URL (Uniform Resource Locator), which is a subset of URI (Uniform Resource Information). This URL has 3 distinctive components:
  • A scheme to use. In the example, that's http, but it could also be https, ftp, ssh, ...
  • A hostname, in this case www.unix.com.
  • A path, /web-programming/
The scheme tells the browser the language to talk in, the hostname tells it whom to talk to, and the path what to talk about.

Next, the browser has to know where to reach the server. This is done using the Domain Name System (DNS) which tells the browser the IP address (like a telephone number) for the server.

With that information, the browser can establish a connection to the server, usually using TCP. The scheme tells it what protocol to use, and which port (like a phone extension). For the http scheme, that's the Hypertext Transfer Protocol and (usually) port 80.

On the server there's a special program listening on the port called a web server. This program knows which path translates to which files on the harddisk, and most can also generate dynamic content using PHP, Perl, Python, or just about anything else. This content is sent back to the browser, which then uses the internal rendering engine to transform the text description of a page to something graphical.

Webhosting is based on the fact that most people don't want (or can't) setup and maintain their own web server. The plans provided vary from providing only a basic machine and public IP address, where you have almost full freedom, to a path in an environment shared with many others.

And yes, you can make your old laptop into a full-fledged web server (tho the poor thing probably won't take well to running all the time). If your ISP has given you a static IP you can even register your own domain name. Otherwise you'll have to use services like DynDNS to get an entry in the DNS system that tracks the changes.
This User Gave Thanks to pludi For This Post:
 

6 More Discussions You Might Find Interesting

1. Programming

a simple fundamental

long double p; long double q; how could i find and store the sum of p & q ? where p and q might have their maximum value. i hope, i'd get a lot of solutions. :) -sham (4 Replies)
Discussion started by: shamal
4 Replies

2. Shell Programming and Scripting

Shell script fundamental Questions

Hi Can u please guide me to understand following script : $JAVA_HOME/bin/java -cp $CLASSPATH -Djava.naming.factory.initial=weblogic.jndi.T3InitialContextFactory -Djava.naming.provider .url=$INITIAL_CONTEXT_PROVIDER -Djava.naming.security.principal=system... (2 Replies)
Discussion started by: pankajkrmishra
2 Replies

3. Programming

Needed help in web development where libraries are written in Ruby!!!

Hi all, I have developed a couple of libraries using ruby for my networks project.Its completely done except for a GUI for the front end. But i am in a fix to know what i need to be using for its development. I initially had plans of using ROR but there is absolutely no DB management that is... (1 Reply)
Discussion started by: wrapster
1 Replies

4. Web Development

Setting up Development and Live web site environment

Hi, I am fairly new to unix so please go easy on me.. I have a VPS on which I would like to setup a development and live web site environment and can't seem to work out what is the best technique for doing so. I would like to be able to mirror the live site and have a "check out" and... (0 Replies)
Discussion started by: ciantrius
0 Replies

5. Web Development

Web development language choice?

Hello, After a bit of basic advice please. What web development languages are available and what are the advantages of each? If this is too basic a question, can someone please signpost so i may research this. I ask as I have a couple of websites that i need to develop but new to programming... (16 Replies)
Discussion started by: maqsood
16 Replies

6. Web Development

Top 8 Web Development Trends 2019

Top 8 Web Development Trends 2019 https://www.youtube.com/watch?v=VLm3Y7Odb74 (0 Replies)
Discussion started by: Neo
0 Replies
URI::URL(3)						User Contributed Perl Documentation					       URI::URL(3)

NAME
URI::URL - Uniform Resource Locators SYNOPSIS
$u1 = URI::URL->new($str, $base); $u2 = $u1->abs; DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to be distributed with the libwww-perl library. The following differences exist compared to the "URI" class interface: o The URI::URL module exports the url() function as an alternate constructor interface. o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase". o The URI::URL->newlocal class method is the same as URI::file->new_abs. o URI::URL::strict(1) o $url->print_on method o $url->crack method o $url->full_path: same as ($uri->abs_path || "/") o $url->netloc: same as $uri->authority o $url->epath, $url->equery: same as $uri->path, $uri->query o $url->path and $url->query pass unescaped strings. o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters) o $url->params and $url->eparams methods o $url->base method. See URI::WithBase. o $url->abs and $url->rel have an optional $base argument. See URI::WithBase. o $url->frag: same as $uri->fragment o $url->keywords: same as $uri->query_keywords o $url->localpath and friends map to $uri->file. o $url->address and $url->encoded822addr: same as $uri->to for mailto URI o $url->groupart method for news URI o $url->article: same as $uri->message SEE ALSO
URI, URI::WithBase COPYRIGHT
Copyright 1998-2000 Gisle Aas. perl v5.16.3 2012-02-11 URI::URL(3)
All times are GMT -4. The time now is 04:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy