Web programming Part 1: environment 由 NordriDesign 提供
HTTP In the simplest words: a client/server technology the client is usually a web browser (a desktop application) the server is usually a web server application a user describes what he wants by the web browser the client sends a HTTP request to the server the request consists of, among others, a name of a requested document the server prepares the document (retrieves it from disk or creates on demand) the servers sends the document to the client as a reply the client interpretes the reply and presents it to the user
Our working environment desktops with web browsers will be our clients hydra.lr.wsinf.edu.pl computer will be our web server home directories of our accounts will be places for web server documents: A document home_directory_of_UserX/public_html/something is mapped to the URL (Uniform Resource Locator)
Suggested desktop software a terminal emulator (e.g. PuTTY) an application supporting file transfer between systems (e.g. WinSCP) a good text editor (e.g. Notepad++) a good bitmap editor (e.g. Paint.NET)
Software provided by hydra a web server (Apache) a page preprocesor/an application server (PHP) a database server (MySQL) All of above provided by typical Linux environment, equipped with remote access by SSH protocol. The environment is often called LAMP (Linux-Apache-MySQL- PHP) and it is the most popular Web programming environment in the internet.
Exercise 1 place some files and directories in your public_html directory and access them by a web browser by http: protocol A document index.html (also index.php) has a special function. If it exists you do not have to end your URL by the name. In the other words, a directory name is sufficient. So, index.html or index.php are default documents for the directory.
Thank You !!!