Final Revision Sheet - 2nd Sec English
Final Revision Sheet - 2nd Sec English
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
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.
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
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.??????