Thursday, May 5, 2011

Introduction to Web Server and Server Side Scripting

Web Servers
Web Server is a software that functions in the server receives a request (request) in the form of web pages via HTML or HTTPS from the client, known as a web browser and sent back (response) results in the form of web pages are generally in the form of an HTML document. Some of the widely used Web Server on the Internet, among others:

1. Apache Web Server (http://www.apache.org)

2. Internet Information Services, IIS (http://www.microsoft.com/iis) 
 3. Xitami Web Server (http://www.xitami.com) 
 4. Sun Java System Web Server (Http://www.sun.com/software/products/web_srvr/home_web_srvr.xml) 
 
Server Side Scripting

Server Side Scripting is a scripting or web programming technology in which the script (program) is compiled or translated on the server. With server side scripting, enabling it to generate dynamic web pages. Some examples of Server Side Scripting (Programming):

1. ASP (Active Server Pages) and ASP.NET  

2. ColdFusion (http://www.macromedia.com/software/coldfusion) 
 3. Java Server Pages (http://java.sun.com/products/jsp/) 
 4. Perl (http://www.perl.org)  
5. Phyton (http://www.python.org) 
 6. PHP (http://www.php.net)
 

PHP Privileges 
1. Fast  
2. Free 
 3. Easy to learn  
4. Multi-platform  
5. Support technical-support 
 6. Many of the PHP community  
7. Safe

Installing Apache, PHP and MySQL with XAMPP

The process of installing Apache, PHP and MySQL is often an obstacle, especially for beginners who are just learning web programming with PHP. This is because the software must be installed and configured one by one. For those not yet understand correctly, would often have difficulty, especially those of us who learn independently. But do not be discouraged, currently widely available applications software packages that unite these three (Apache, PHP and MySQL) into a single installer. The installation can be done easily and quickly, just next, next, and finish. Some application packages include:

1. XAMPP (Windows version) and lampp (Linux version) which can be downloaded at http://apachefriends.org. 

2. WAMP Server.
3. AppServ.  
4. PHPTriad.

Wednesday, May 4, 2011

Selection c++

Control statement is used to take a decision or choose the programs to be undertaken in accordance with the conditions or terms provided. OR Branching is a selection of statements to be executed when the selection was based on certain conditions.
The statement above-statement needs a condition or conditions as the basis for decision making. One of the commonly used condition is a state of true or false (true or false). C language provides several statements control, such as:

If statement If-else statement, and
Switch statement
IF Structure of the conditions.


This structure is the simplest structure because it only involves one  expression to be examined. If the condition is false, will do nothing in the instruction IF (straight to the next instruction). The structure is as follows:

/ / If only one statement made
if (condition) statement
/ / If more than one statement
if (condition) {
    
statemen1;
    
statemen2;
    
... .. } 


The structure of the two conditions  

Branching structure of this type a little more complex when compared with the structures that have only one condition. The structure is as follows:

if (condition)
   
{Statemen_jika_kondisi_terpenuhi;} else
    
{Statemen_jika_kondisi_tidak_terpenuhi;}
 

The structure of the three conditions  
Branching of this type is an extension of the branching structure with one and two conditions. The structure is as follows:

if (kondisi_1)
   
{Statemen_jika_kondisi_1_terpenuhi;} else if (kondisi_2)
    
{Statemen_jika_kondisi_2_terpenuhi;} else if (kondisi_3)
    
{Statemen_jika_kondisi_3_terpenuhi;} else
    
{Statemen_jika_semua_kondisi_diatas_tdk_terpenuhi;}

HTML (hypertext markup language)

HTML DEFINITION
 HTML (hypertext markup language) is one of the formats used in making documents and applications that run on web pages. Therefore, to be able to do programming applications over the web. You must first to master HTML. Although there are now many packages applications that can be used to create web pages in WYSIWYG (what you see is what you get) such as FrontPage, DreamWeaver, Netsccape Composer and there are many more, but still have to master HTML tags, especially for make the application on the internet. 

HTML BASICS

HTTP (hypertext transfer protocol) is a protocol used for transfer data between a web server to a web browser. This protocol transfer web documents written or formatted HTML (hypertext markup language). It said because the HTML markup language used to format the file plain text documents to be displayed on the web browser as you wish. This can be done by adding elements or often referred to as tagtag. HTML elements are usually in the form of paired tags and each tag marked with the symbols <and>. Pairs of a tag marked with a `/`. For example, pairs of <contoh> tag is </ example>. In this case <contoh> referred to as the element and usually in a contained element attributes to regulate that element. So for example <contoh> element when written with attributes are as follows: 

 
<contoh atribut1="nilai_atribut1"atribut2="nilai_atribut2" …>. 


 In writing the HTML tags are not case sensitive meaning that the use of capital or small letters does not matter.