0% found this document useful (0 votes)
13 views12 pages

Final Revision Sheet - 2nd Sec English

The document is a revision sheet for a computer course covering web design basics, programming languages, and database management. It details concepts such as freeware and open-source programs, static and dynamic web pages, server types, and SQL operations. Additionally, it outlines the stages of creating a project and the relationships between database tables.

Uploaded by

Ihab Freiha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views12 pages

Final Revision Sheet - 2nd Sec English

The document is a revision sheet for a computer course covering web design basics, programming languages, and database management. It details concepts such as freeware and open-source programs, static and dynamic web pages, server types, and SQL operations. Additionally, it outlines the stages of creating a project and the relationships between database tables.

Uploaded by

Ihab Freiha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Computer Final Revision

1st.Term

2nd.Secondary
By / Yasmin Shoaeb
Revision Sheet Computer 1st.Term
Unit One: Basics of web site Design  Print Server: means computer printer connected to it, and
Lesson 1: Cybernetic Entrance of the Project controls the print management operations issued by any
1- Freeware Programs other device in the network.
They are the programs whose owner allows others to use  E-mail server: is intended to store the computer device e-mail
them free of charge or with written permission from him. messages and controls the management of all e-mail
2- Open Source Programs processes and made them available for users of e-mail.
They are the programs and published applications that give 6- Script:
users access to the code, the possibility to modify, develop it It is a sequence of instructions or code written in one of Web
in the light of the needs of its developers, and republish or pages languages customized for web pages to perform a task
use it after the amendment. or to process some of the data.
3- Static Web Page
It is an Information page that is displayed through one of the
 Server Side Languages (PHP or ASP. net) Run at server.
Internet browsers. It can be saved along .htm, .html page.  Client Side Languages(Java Script or VB Script) Run at Client.
4- Dynamic Web Page For example:
It is an information page available on the Internet. It can be Make sure not to leave empty-user name field. It can be
written in PHP or ASP.net. It can display different types of implemented through: (Run at Client) ( Java Script code)
data, and be made available through an address to the The verification code that the user name and password are
content of the page, such as restoring a value or displaying a correct and in the database server is implemented through:
message or an output. (Run at server). (Asp or PHP code)
5- Server: The term is intended to two different meanings: 7- HTML" Hyper Text Markup Language: "
1. Hardware Server: which is the highest powerful computer It's the language used to create the Static Web Page. This page
network. (It's the computer Hardware Server in a computer can be saved along .htm, and displayed through one of the
network. It controls the rest of the network devices and Internet browsers.
through which the permissions of computer network users 8- The language of PHP "Personal Home Page"
are determined by running the Server system). It's one of the specialized languages in developing dynamic
2. Software server: which is as a task or role run in the network. web sites. It's a free open source language characterized by
It is intended for the role of the computer in the computer ease, speed, and operates the Server Side Language. Its own
network through Software, for example: code can be included within the HTML code, and can easily
 Web Server: means the device on which the computer Web connect different data bases safely.
site pages are stored.  Any programming language needs an assistant program
used to type the code. Among the most famous programs
creating web pages in PHP language:

2
2022 - 2023
Revision Sheet Computer 1st.Term
Aptana Studio - Komodo edit - Expression web - Coffee cup  The essential difference between the previous web
free HTML editor applications packages is the operating system you are
9- Apache Server: working with.
This program is used with Server devices or simulates your 14- Session:
personal computer to act as Server device. It's a way to store information about the user (visitor of the
10- Publishing Web Site: There are two ways to publish a site: website) in order to make it available for use across the pages
1. Localhost: Where the site is displayed on our computer or in of the site, such as: (User Name, Password, some general and
a LAN . personal data, ....etc).
2. Publishing Web Site: Lesson 2 : Planning the Project Site
Where the web site is uploaded to the server. This server is Steps to create web site:
called" web server which provides web hosting service" That 1. Configure the appropriate environment to create web site by
allows" users to visit the site through the web site address or the following:
URL "Uniform Resource Locator", for example " the site of the - Set up programs (apache and xampp).
Ministry of Education." "www.emoe.org.eg." - Save web page files in server and display in one of internet
11- SQL "Structured Query Language: " browsers.
It's a programming language used in all operations of - Prepare personal computer to be server.
database. 2. Implementation of project (terms dictionary) by 3 steps
(orders) that allow you to carry out operations:
- Create of database (my SQL and access).
 Inserting new data (INSERT).
- Create static web page using html code and expression web.
 Displaying previously stored data by (SELECT)
- Convert static web page to dynamic web page by using php
 Editing these data (UPDATE).
inside html code.
 Deleting these data (DELETE).
- And finally we display web sites by using internet browsers
12- MySQL Server: It's one of the applications of RDBMS
such as: Internet explorer – Firefox – google chrome.
"Relational Data Base Management System." Notes:We save information of web pages in server by one of
13- " Web Server Packages":
the following :
1- Web applications package LAMP (Linux - Apache - MySQL
– PHP). - Web sites with cost by booking web site in one of host
2- Web applications package WAMP (Windows - Apache - servers.
MySQL – PHP). - Without cost by one of free internet sites which allow hosting
3- Web applications package MAMP(Mac-Apache- MySQL- web site.
PHP). - Publishing web site locally.
4- Web applications package (XAMPP) "X-os, Apache, MySQL,
PHP, Perl".
3
2022 - 2023
Revision Sheet Computer 1st.Term
Unit 2 : Lesson 1: Requirements and production stages of the  Field Name: Such as Student’s name, Governorate, Salary,
project Quantity…etc
 Producing the “Computer Terminology Dictionary” project  Field Data Type: may be: String: Such as Name or Address..
passes through a number of stages as follows: Numeric: Such as Degree or Salary.. Date: Such as Date of birth
 Stage 1: Designing Web Pages. ...and so on.
 Stage 2: Creating Database Tables.  Field Size : It is the number of digits or characters in the case
 Stage 3: Creating Web Site Pages. of the text field, or select the type of numbers entered in the
(Stage 1): Designing Web Pages case of the numeric field (Integer - contains a Decimal - .......
etc) .
 To avoid writing code in all the site pages are as follows:
1. Separate the image Banner and Hyperlinks in a separate page  You can create database that consists of only one table
that is called in the beginning of each page. containing all the necessary fields and in this case the table is
2. Separate connects code to the database in a separate page that called "Flat Table".
is called at the beginning of each page.  The matter requires creating relations between the database
3. Image that appears at the beginning of each page called tables to each other, so as to avoid duplication of data or fields,
Banner and in this case the database is called Relational Database.
4. All Hyperlinks that we use to navigate between pages of the  To ensure the success of the linking process between database
site are: (Main - Add term - Search term –Edit - Delete - Help). tables, you must achieve the following:
(Stage 2): Creating Database Tables (1) Set a "Primary Key":
1- Database:  Set a "Primary Key" field for each table, and that by one of
The database is a store or save a set of structured data associated two ways:
with a particular subject in order to restore it to make decisions. 1. Select a field from the table fields: the requirement will not be
2- Tables: repeated any statement in this field at all, even with the huge
Table represents infrastructure or the main component of the volume of data.
database, and consists of Records and Fields. Or
3- Records: 2. Add a new field: it is set or allocated as a Primary key field.
A row of data table containing all the data for only one person or (2) Determine the types of relationships in databases:
one case.
4- Fields:
Field is the infrastructure that makes up the data table, any
column in a table is a field, and the field contains only one
statement for each record of the table records.
Each field has many of properties including:

4
2022 - 2023
Revision Sheet Computer 1st.Term

Types of relationships between database tables


First Type: One to One
A Relationship between two tables, where you can join a record
in the first table with only one record of the second table, and
vice versa.
Note The primary key fields in the two tables must
be:
(1) The same Data Type.
(2) The same size.
(3) Do not require to be the primary key fields in the two tables
have the same name.
"Foreign Key", because it is not of the nature of the table and it  Before doing the link between the two tables in a relationship
is considered an outsider field. many - to-many should create a new table that contains the
Second Type: One to Many primary key field "Class number" of the “Class table”, and the
A Relationship between two tables so that you can join a record primary key field "Teacher number" of the "Teachers table",
in the first table with numerous records in the second table and and assign that two fields together is the composite primary
not vice versa. key in the linking table.
 Many-To-many relationship is a theoretical relationship of
Note concepts of databases, and cannot be represented practically
in database management programs such as Access - Oracle -
 To do link between the two tables in the one -many MySQL ... etc.
relationship should be added the primary key field in the  So the relation was broken into two relationships: The first:
table One(" classes table") to table Many ("students table”), it one-to-many relationship between "Class table" and “linkage
is called in this case "a foreign field" (Foreign Key) because it table” so that the head is a "Class table", and the parties (many)
is not of the nature of the table, but it outsider field. in terms of connectivity “linkage table”. The last: one-to-many
 In the foreign key field (the class number in students table), relationship between "Teachers table" and “linkage table” so
data can be repeated, and called Controlled redundancy. that the head is a "Teachers table", and the parties (many) in
terms of connectivity “linkage table”.
Third Type: Many to Many
A Relationship between two tables where one or more rows in  Data cannot be duplicated in the primary key field in the "Class
a table are associated with one or more rows in another table. table ".

5
2022 - 2023
Revision Sheet Computer 1st.Term
 Data cannot be duplicated in the primary key field in the  Notes:
"Teachers table".  The code begins with <Html> and ends with </ Html>
 You cannot repeat the teacher No. and class No. together in the
linkage table because they together represent a composite  The command written in HTML coding language is called
primary key as shown on the figure. Tag.

 Each class in the "Class table" can be taught by many of the


 Each tag has a certain task to perform.
teachers, and each teacher can also teach in more than one  It is possible to be written in capital or small letters.
class.  Tags commands in the markup language HTMLare placed
 Using one of Database management system applications in between two brands<>
creation of the database, such as: Oracle or MS Access or  Most of the Tags have a beginning or open <... ..> and an
MySQL end or Close </ >
 We will use the application MySQL where it is free application  Some tags don't have a close or an end such as <BR>.
(Free Ware), an Open Source.  Save the file in any HTML code name with the extension
 Database management system include basic Objects such as: .htm or .html.
Tables:
through which we can create database tables containing
records and fields, and the possibility of entering, displaying
and modifying the data.
Queries:
Query is a request for information from a database for the
purpose of data or information in the tables.
Unit 3: Creating Site Pages of
"Illustrated Dictionary of Computer Terms".
"Hyper Text Markup Language "HTML"
 It's a coding language used to create Web pages that
 After saving the file with the previous specifications, it takes
saved with the extension of the .htm or .html so that it can
be displayed. Internet
 you can write HTML code using a word processing  browser code available on your computer, such as:
programs, such as: Internet Explorer or Google Chrome or Mozilla Firefox Etc…
(MSWord, WordPad, Notepad and …….)  A file icon in the case of Internet Explorer.
6
2022 - 2023
Revision Sheet Computer 1st.Term
 You can also modify the Web pages and connect them The applications used to create Web sites and pages feature are
characterized by (WYSIWYG) (" which Means:
through text or image using the application of Expression
Web ( "what you see is what you get")
Loading Expression Web program: Variables and constants in the language of PHP:
From the start menu, select the program Microsoft Expression A Variable is storeroom in the memory that has a name and type
Web 4 for which we allocate a value to be stored in and its value is
as shown in the following figures: changed during the course of the program. For example:
$Total = 450;
- We announce the variable when it is used
- Variable name begins with an."$"
- Variable name consists of letters, numbers and sign "_" only,
such as:
$user_name - $A123 - $Password....etc.
- Variable name should express its content or what it refers to.
- Assignment sign is "=".
- Each sentence ends in PHP sign language;
-To print any information on the browser screen use Print or
Echo, as follows:
- print $total;
- OR echo ("$total");
- Echo Code can be used to assemble more than a fixed or
variable on printing on the browser screen and then separate
them by a dot"." .

(1) Menu Bar


(2) Folder List
(3) Tag Properties
(4) Website component
(5) Toolbox
(6) Apply Style
7
2022 - 2023
Revision Sheet Computer 1st.Term
PHP constants in the language:
The constants are stores in memory bearing the name and type
with an assigned fixed value that does not change throughout
the implementation of the program, and can be defined by the
following general formula:
define ('Constant Name', Value);
For example:
define ('name', 'Mohamed');
echo('my name is: '. name);
 We use a (.) In the second line of the code to link the two
literal series.
 We used the constant without the $ sign.
 Define"is used to define constant.
 Each line in PHP language ends with a semicolon;.
When you execute the previous code, its result on the Internet
browser screen is as follows: my name is: Mohamed
Note:
 It is worth mentioning that the variables and constants are
affected by the status of large or small letters( Case-
Insensitive), and if you want the constant to be not sensitive to
the case of letters, use the following formula:
define('Constant Name', Value, true);
 Each sentence in the language PHP must end with a semicolon
Semi Colon " ; "
 Typing a comment in PHP code without being translated or
executed before the sign."//"
 As to type a note or a text of more than one line, you should
type a comment or notes in full preceded by "/ *" At the end of
the note put the mark."/ *"

8
2022 - 2023
Revision Sheet Computer 1st.Term
Lesson 2 : Transactions and conditional sentences in PHP
language
Operators:
(1) Mathematical Operators of two types (normal – other)

First: IF Condition:
We can use an IF statement in different ways depending on the
program requirements.
The simplest form in which IF statement is used in PHP
language is:

9
2022 - 2023
Revision Sheet Computer 1st.Term
In the previous example we notice that: - In the previous example we notice that:
You first phrase: "Echo" will be typed on the browser screen if The phrase "‫ " أنت األول‬:-
the value of the variable equal to $ A "First. Will be typed only on the Internet browser page if the only value
"=" -Sign in the code ($ A = "First";) represents: Allocation of the variable $ A is equal to "First", otherwise it will print the
operator, but the sign "==" with IF statement represents logical words " ‫" أنت الثانى‬, Because the $ A = "Second", the condition is
OPERATOR (Equal). not true, therefore, the result of the full implementation of
With Each sentence in the language PHP ends: Semicolon" ;" printing the code is "" ‫"" أنت الثانى‬.
The following pattern of the IF statement is the most
common:

In the previous example (:) Colon helped to write more than one
sentence in one line It led to the same result, instead of using
braces.{}

10
2022 - 2023
Revision Sheet Computer 1st.Term
Secondly: Switch Statement

 If the value of the variable is equal to 1 ( "case 1) "one" is typed


and so on for the rest of the possibilities.
 the last possibility if the value of the variable were not equal to
1, 2 or 3 or less than this" no" is typed.
 We can finish without doing anything by using "Exit", for
example, in another case of Default, we can put the word Exi
to Switch out of the sentence instead of printing "no".
Another formula for Switch statement where “case" can take
more than one value as the example below:

11
2022 - 2023
Revision Sheet Computer 1st.Term
This image is equal to the following conditional if  The tag used to open a division in PHP is <div>
 The use of my (sql_query) function helps to show the
data on a Web
Page in the Arabic; they don't appear in the form of question
marks like this.??????

Lesson 3 : "Add_Term.php" page


Differences between the values (POST) and (GET):
Get Post
Transmitted data appear in Transmitted data do not
the "URL" page address. appear in the "URL" page
address.
They are not used to send They are used to send secret
secret or any important data or any important data words.
words.
It has a limit of the data used Its Maximum data used is up
up to Its Maximum data used to 8 Mb
is up to 8 Mb 7607 Character
symbols.

 PHP code to insert "Header" page at the beginning of the


Screen is :

 Includes the database connection page by the following code:


include("connection.php");
12
2022 - 2023

You might also like