The document provides an overview of LAMP technology, which refers to a group of open-source software used to build dynamic web sites and applications. It describes the core components of LAMP - Linux as the operating system, Apache as the web server, MySQL as the database management system, and PHP as the programming language. It then discusses each component in more detail and provides examples of commands and basic usage.
12. BASIC LINUX COMMANDS: 1.Show who is logged on and what they are doing. $ w 2.Show who is logged on. $ who
13. 3.Create empty file of 0 byte $ touch 4.Remove file $ rm 5. List files. $ ls
14. 6. Create/Make a new directory. $ mkdir 7. Clear the terminal screen. $clear 8.Display information on free used memory. $ free
15. 9.Check current date and time. $ date 10.Compare two files. $ cmp file1 file2 11.To save and exit. Ctrl -d
16.
17.
18. 13.Prints a calendar for the specified month of the specified year. $cal month year 14.It will show you the full path to the directory you are currently in. $pwd ( print working directory) Feb 13, 2012
19. 15.Type mv followed by the current name of a directory and the new name of the directory. $mv( change the name of a directory)
39. * Though other ports such as 8080 can alternatively be used. * The HTTP also includes. ARP-(Address Resolution Protocol) DHCP-(Dynamic Host Configuration Protocol) FTP(File Transfer Protocol) Feb 13, 2012
40.
41.
42.
43.
44. CONFIGURATION Instead of using a point-and-click graphic user interface (GUI) or Windows Registry keys as most other modern software packages, Apache generally relies on simple text files for its configuration settings.
58. SYNTAX FOR QUERY COMMANDS 1. CREATE Command : The Create command is used to create a table by specifying the tablename, fieldnames and constraints as shown below: Syntax: $createSQL=("CREATE TABLE tblName");
59. 2. SELECT Command : It is used to select the records from a table using its field names, '*' is used to select all the fields in a table. Syntax: $selectSQL=("SELECT field_names FROM tablename");
60. 3 .DELETE Command : The Delete command is used to delete the records from a table using conditions as shown below: Syntax: $deleteSQL=("DELETE * FROM tablename WHERE condition");
61. 4. INSERT Command : The Insert command is used to insert records into a table. The values are assigned to the field names as shown below: Syntax: $insertSQL=("INSERT INTO blname(fieldname1,fieldname2..) VALUES(value1,value2,...) ");
62. 5. UPDATE Command : It is used to update the field values using conditions. This is done using 'SET' and the fieldnames to assign new values to them. Syntax: $updateSQL=("UPDATE Tblname SET (fieldname1=value1,fieldname2=value2,...) WHERE fldstudid=IdNumber");
63. 6. DROP Command: The Drop command is used to delete all the records in a table using the table name as shown below: Syntax: $dropSQL=("DROP tblName");
64.
65.
66.
67.
68.
69. EXTRACT : Extracts the specified date field from the supplied date. LAST_DAY : Returns of supplied date with the day shifted to the last day of the month.
70. PROCEDURES AND FUNCTIONS Subroutines and functions can be made available to a single program or many; and that, of course, is what stored procedures and stored functions are - they are procedures (or subroutines) and functions stored in the database .
71. WHY USE PROCEDURES AND FUNCTIONS? The real advantage to using stored procedures and stored functions is that they provide functionality which is platform and application independant.
72.
73. CREATING MySQL PROCEDURES A stored procedure is the same as a subroutine in that it cannot directly return a result, however it can receive variables that can be modified by the procedure.
74.
75. Procedures are always declared as: Define the procedure name, inputs and outputs,body of the procedure. For example: delimiter // create procedure circle_area (in r double, out a double) begin set a = r * r * pi(); end //delimiter ;
76.
77.
78.
79. For example : delimiter // create function circumference (r double) returns double deterministic begin declare c double; set c = 2 * r * pi(); return c; end // delimiter ;
90. BASIC PHP SYNTAX * A PHP scripting block always starts with <?php ends with ?> * For maximum compatibility, it is recommended that to use the standard form (<?php) rather than the shorthand form.
91.
92.
93.
94.
95.
96. CONTENTS OF "test.ini" [names] me = Robert you = Peter [urls] first = "http://www.example.com" second = "http://www.sample.com"