Fundamental question on web development


 
Thread Tools Search this Thread
Top Forums Web Development Fundamental question on web development
# 1  
Old 07-19-2011
Computer Fundamental question on web development

I am just getting into web development and I want to understand it better and more theoretically. Smilie
So by now I can create some basic websites with html, css, php, etc, but what I do not understand is how is this then projected into the world wide web or what we call the internet??? Of course I've used the free web hosting websites to display my websites, but I just do not understand how they work and what exactly is web hosting and its relation to a server.
For example I can technically make my crappy laptop a server, but it doesn't mean I can host a website?

Basically can somebody help me understand this process a bit more simply, I read a bit about it, but most people/info sites just throw some words around, which don't give me fundamental picture of the whole process.

Thank you in advance!
# 2  
Old 07-20-2011
Quote:
Originally Posted by vas28r13
For example I can technically make my crappy laptop a server, but it doesn't mean I can host a website?

Basically can somebody help me understand this process a bit more simply, I read a bit about it, but most people/info sites just throw some words around, which don't give me fundamental picture of the whole process.

Thank you in advance!
Hello vas28r13,

In regards to hosting a website on your laptop, this can be done. Each computer connected to the internet has an IP address e.g. 72.14.203.103. If you set up some web server on your laptop, such as Apache2, and "open up" your network, people can see your webpages via your computer's IP address. Please be careful when opening up ports in your network though. Basically, your laptop is now a web server. Since servers need to be turned on for long periods of time, specialised computer hardware are made into servers and kept in super cool room to keep them cool.

Of course you are probably more familiar with accessing websites by using their URL such as http://www.google.com. Read up on the concept of DNS. Basically the URL represents an IP address e.g. 72.14.203.103. You can try copying and pasting that IP address into your web browser.

Hopefully this makes a bit more sense.

Dave
This User Gave Thanks to z1dane For This Post:
# 3  
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:
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
Login or Register to Ask a Question