Simple question about web

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
johnhelen
Forum Commoner
Posts: 45
Joined: Mon Feb 19, 2007 9:17 pm

Simple question about web

Post by johnhelen »

Hello all

I have simple question about www, please help

When I type simple forums.devnetwork.net in my browser, what and where will happen next. Why the server that stores the forums/devnetwork.net knows that I open that website and return a content...

Sorry for a silly question,

thanks
sho
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

the web looks up the dns servers for the domain you entered. the dns servers point to the server ip that the content is on, the server that the content is on points to the content.

web address -> dns -> server -> content
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That is called DNS. Search for it.
johnhelen
Forum Commoner
Posts: 45
Joined: Mon Feb 19, 2007 9:17 pm

Thanks

Post by johnhelen »

Thanks all

What happen if I type:

http://localhost ....

In this case, my web server in my location computer will process DNS first ???

Thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Try it.

In short, the answer is yes, but that is usually because your computer has a local hosts file that tells it to resolve 127.0.0.1 everytime it sees localhost as the domain.
Post Reply