11 03-class-notes: Difference between revisions
Andrecastro (talk | contribs) No edit summary |
Sebastians (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
ulr - http - hiper text transfer protocol - | ulr - http - hiper text transfer protocol - | ||
\ / | \ / | ||
"html" - | "html" - hyper hyper text markup language | ||
/ | / | ||
browser | browser |
Latest revision as of 22:26, 7 December 2011
The web
The invesion of the web Tim Berners-Lee - put these 3 protocols toguether 1990 - CERN [server] / ulr - http - hiper text transfer protocol - \ /
"html" - hyper hyper text markup language
/
browser
- static files -
- scripts - get program running on a server
url: protocol:// hostname path...
(name=ip)
ftp:// cern.ch/guy/file.txt } i can acess files
htttp://pzwart3.nl/silvio/img.png
\/
GET: /silvio/img.png
(Onje can make a link w/out asking for permission: Hayles dream of freedom of information)
http - "pick up the phone, hang up the phone". very VS shh - long term connection - very intereactive protocol
//check the erro log of the server tail -f /var/log/apache2/error.log
TO RUN A PYTHON SCRIPT ON THE SERVER
chmod +x
- ! /usr/bin/pyhton #tell it what will run the script
import cgitb cgitb.enable()
print "Content-type: text/html" # mime type
test it in command line : ./file.cgi
- sshfs - mounts the server on my machine
import os print os.environ
for key in os.environ:
print key, ":", os.environ[key], "
"
- if TRUE:
print """
Hello windows user
"""
Ted Nelson - computer agitator - hyper text
thought the web was missing: a link should be 2ways. if one is linked by some, a link in this linked person should also appear
telnet is the same as ssh, but not encripted