|
-
Apr 7th, 2009, 01:08 PM
#1
Thread Starter
Stack Overflow moderator
Is it possible to serve web pages across various link styles?
Hello again!
I would like to know whether it is possible to make a program that serves web pages, along with all of their embedded links and external CSS stylesheets or scripts? It would have to serve it across:
a) a USB cable, attached to the serving and client computer
b) a network, directly to other computers.
I would really like it if option A were possible. B is what everything else uses, and I won't try that. I don't have a network.
-
Apr 7th, 2009, 02:39 PM
#2
Thread Starter
Stack Overflow moderator
Re: Is it possible to serve web pages across various link styles?
Please, someone, if it's not possible, tell me no. Otherwise I'll go crazy waiting for an answer.
-
Apr 7th, 2009, 03:28 PM
#3
Re: Is it possible to serve web pages across various link styles?
To "serve" something, you will need a "server". Now if you want to serve web pages, you'll need a web server. And that web server needs to be running in order to serve web pages. Can you have a running web server in a USB thumb drive? I guess not.... So the answer is pretty obvious:
a) No. You cannot use a USB drive as a web server. You can store pages to be served there, but the drive itself cannot serve the pages.
b) Yes. Any computer with the appropriate web server software installed can serve web pages.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Apr 7th, 2009, 03:55 PM
#4
Thread Starter
Stack Overflow moderator
Re: Is it possible to serve web pages across various link styles?
No, no, a USB cable. Directly connecting two computers.
-
Apr 7th, 2009, 04:07 PM
#5
Re: Is it possible to serve web pages across various link styles?
 Originally Posted by minitech
No, no, a USB cable. Directly connecting two computers.
And one of the computers is the web server? If the answer is yes, then the answer to your question is also yes.
To use a (special) USB cable to network 2 computers, check this out:
http://compnetworking.about.com/od/h...ecttwocomp.htm
Eidt: This site has better instruction. Be aware, you must use a special USB calble called "USB bridge cable" to do this. Using regular USB cable can damage your computers hardware.
http://www.ehow.com/how_2258736_conn...using-usb.html
Last edited by stanav; Apr 7th, 2009 at 04:10 PM.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Apr 7th, 2009, 04:09 PM
#6
Re: Is it possible to serve web pages across various link styles?
You'll either be in file-transfer mode or network mode. If it's file transfer mode, then it's a simple matter of providing the HTML file along with associated CSS and JS and JPG/GIF/PNG files, preferably under a single directory so it can be viewed easily.
If it's network mode (and this is what I'm guessing you ant), then you'll need a web server anyways because for a machine on any network to serve web pages, it needs a web server so that you can do something like
http://machine2/pagename.html
-
Apr 8th, 2009, 09:29 PM
#7
Thread Starter
Stack Overflow moderator
Re: Is it possible to serve web pages across various link styles?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|