Raspberry Pi_Eng_24.1.2 LAMP

24.1.2 LAMP

On Linux systems, there is a powerful combination of tools that can build a web site using database and web server along with operating system, LAMP. LAMP is a combination of Linux, Apache, MySQL, and PHP. The basic compositions and roles are as follows.

■ OS — Linux

■ Web server — Apache

■ Database — MySQL

■ script Language — PHP

Raspberry Pi_Eng_24.1.1 Needs for Database and Web

24.1 LAMP Overview

24.1.1 Needs for Database and Web

Until now, all we could do was to run command on Terminal screen to check the result, or run a specific application program and do limited work by using function provided by the program. But this level of functionality alone can not meet all of the requirements we need, so a number of additional features are required.

Raspberry Pi_Eng_24.0 Chapter 24 Utilizing Database and Web

Chapter 24 Utilizing Database and Web

Chapter’s Main Topics

This Chapter describes database used to systematically store and analyze a lot of data, and discuss how to communicate with other people on the Internet in various dynamic ways using HTML, script language.

It includes descriptions on the following topics:
■ LAMP Overview

■ MySQL Database

■ Apache web server

■ PHP web script language

Raspberry Pi_Eng_23.7.3 Writing and Running Java language Program

23.7.3 Writing and Running Program

23.7.3.1 Writing Program Source Code

A typical Java program usually has the following form. Class is defined in the first line of program, and “main” function corresponds to the body of program.

Raspberry Pi_Eng_23.7.1 Overview of Java language

23.7 Java language

23.7.1 Overview

Java language is a program development language developed by Oracle and is one of the most widely used development languages in the world today. Raspberry Pi also allows you to develop programs with Java language, and now you can use “1.8.0” version.

Raspberry Pi_Eng_23.6.3 Saving, Compiling and Running C language Program

23.6.3 Saving, Compiling and Running Program

● Saving program

The created program is saved as a file. A source program written in C is stored in a file with extension of “.c”. We will store the program to “~/program_test /test_inout.c” file. Now, if you check the folder contents where the file is located, it will show the results as follows.

Raspberry Pi_Eng_23.6.1 Overview of C language

23.6 C language

23.6.1 Overview

C language has a command structure that is easy for a computer machine to understand, and provides powerful performance. C language is a well portable program development language so that programs developed in C language can be used on all computers.

Raspberry Pi_Eng_23.5.6 Learning Python Using Simple Example

23.5.6 Learning Python Using Simple Example

● Number-matching game example

This program is an interactive, number-matching game. It allows users to match number from 1 to 99.

Here “randint” function is used to get a random number. This program will continue to run using “while” loop until the user match the number.