Requirements๏ Apache2๏ Php 5.3 or above๏ MySql๏ PhpMyAdmin๏ or MAMP, WAMP, and XAMPP
Steps๏ Structure of the project๏ Adding hostname to /etc/hosts๏ Edit the httpd.conf in Apache๏ Start Apache and test it
Project Structure๏ Project Directory ๏ web directory ๏ index.php
Hosts in MAC/Unix๏ Mac/Linux in terminal sudo vi /etc/hosts๏ and insert this 127.0.0.1 www.webcamp.com.local
Hosts in Windows Open notepad as a administrator Then open the ﬁle in C:WindowsSystem32driversetchosts insert 127.0.0.1 www.webcamp.com.localSave the ﬁle. Make sure notepad doesn’t append .txtto the ﬁle.
Creating a Virtual Host๏ MAC๏ Open /Applications/MAMP/conf/apache/httpd.conf๏ Change Listen 8888 -> Listen 80 ServerName localhost:8888 -> ServerName localhost๏ Insert NameVirtualHost *:80 Include /Users/computer_name/Desktop/vhost/*.conf //sample๏ Create a new ﬁle with an extension .conf and save it to the folder /Users/computer_name/Desktop/vhost and insert the code of virtual host in this ﬁle.
Creating a Virtual Host๏ WINDOWS๏ Open C:wampbinapacheApache2.2.11confhttpd.conf๏ Uncomment Include conf/extra/httpd-vhosts.conf๏ Open the ﬁle in conf/extra/httpd-vhosts.conf๏ Comment all except for the line NameVirtualHost *:80๏ Then insert on the last line the code (next page)
GET vs POST GET POST Technical Body of HTTP URL Difference RequestRecommended viewing something changing Usage without changing it something
GET vs POST GET POST ๏ bookmark page ๏ sensitive information ๏ search engines can ๏ multi-part binary (ﬁle Advantages upload) index the page with passed data ๏ large quantities of data ๏ size limitation ๏ can NOT bookmarkDisadvantages ๏ not for sensitive ๏ search engine can NOT information index the page