Showing posts with label Html. Show all posts
Showing posts with label Html. Show all posts

Thursday, May 5, 2011

PHP Basic Structure

PHP Definition  
According to official documents of PHP, PHP stands for PHP Hypertext Preprocessor.
It is a form of language scripts that are placed in the server and processed on the server.  
The results are sent to the client, the user using the browser.  
PHP is a server-side scripting language that integrates with HTML
to create dynamic web pages. The purpose of the server-side scripting
is the syntax and the commands that we give will be entirely run on the
server but is included in regular HTMLdocuments. PHP is free to use.
You do not have to pay anything for using this software, aka free.
You can download it via the site http://www.php.net. PHP is available 
in binary code form as well as complete source code.

PHP Style 
 PHP gives us flexibility when writing a program, 
with records still refer to the conditions set. Please note that by the time 
PHP parse the file, the tag will be read to meet the special tags which tell
for menerjemahkanya as PHP code. If the tag is found, then parser to 
execute the program code until the end on the closing tag. This also
applies to the PHP code is embedded in HTML documents, which 
the parser will find the tags to be found. The rest are outside the tags will
be deemed not is the PHP code, so the parser is also no need to process it. 
 There are four ways to write a tag that identifies the PHP program.

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

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.