Computer Servers
Computer Servers
INTRODUCTION TO A SERVER
1
Lecture 7 web design khalidah ali ahmed
SERVER HRDWARE
Hardware requirement for servers vary,
depending on the server application.
Absolute CPU speed is not quite as critical
to a server as it is to a desktop machine.
Servers' duties to provide service to many
users over a network lead to different
requirements such as fast network
connections and high I/O throughout.
Since servers are usually accessed over a
network, they may run in headless mode
without a monitor or input device.
Processes that are not needed for the
server's function are not used. Many
servers do not have a graphical user
interface (GUI) as it is unnecessary and
consumes resources that could be allocated
elsewhere. Similarly, audio
and USB interfaces may be omitted.
2
Lecture 7 web design khalidah ali ahmed
TYPES OF SERVER
1. Application server a server dedicated to running certain software
applications.
2. Catalog server a central search point for information across a
distributed network.
3. Communications server carrier-grade computing platform for
communications networks.
4. Compute server, a server intended for intensive (esp. scientific)
computations.
5. Database server provides database services to other computer
programs or computers.
6. Fax server provides fax services for clients.
7. File server provides remote access to files.
3
Lecture 7 web design khalidah ali ahmed
4
Lecture 7 web design khalidah ali ahmed
5
Lecture 7 web design khalidah ali ahmed
Because these three CMS made the designing of web pages more easy. And
these CMS help us to design dynamic web pages.
For dynamic web pages we use CMS if we want to design web pages easily
and attractive, we can also design web pages by our own thoughts using
PHP and MySQL. In which age we are living it is the time to create dynamic
web pages. Of course, without using HTML, CSS, JavaScript, AJAX we
can’t use just PHP and MySQL but the main thing is that make secure web
pages which should secure data and be useful, which is done by PHP and
MySQL.
PHP is a server scripting language, and a powerful tool for making dynamic
and interactive Web pages.
PHP is a widely-used, free, and efficient alternative to competitors such as
Microsoft's ASP.
6
Lecture 7 web design khalidah ali ahmed
Example
7
Lecture 7 web design khalidah ali ahmed
With PHP you are not limited to output HTML. You can output images,
PDF files, and even Flash movies. You can also output any text, such as
XHTML and XML.
Why PHP?
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X,
etc.)
PHP is compatible with almost all servers used today (Apache, IIS,
etc.)
PHP supports a wide range of databases
PHP is free. Download it from the official PHP resource:
www.php.net
PHP is easy to learn and runs efficiently on the server side
What Do I Need?
To start using PHP, you can:
8
Lecture 7 web design khalidah ali ahmed
The official PHP website (PHP.net) has installation instructions for PHP:
http://php.net/manual/en/install.php
<?php
// PHP code goes here
?>
The default file extension for PHP files is ".php".
A PHP file normally contains HTML tags, and some PHP scripting code.
Below, we have an example of a simple PHP file, with a PHP script that uses
a built-in PHP function "echo" to output the text "Hello World!" on a web
page:
9
Lecture 7 web design khalidah ali ahmed
Example
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
Example
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
After the execution of the statements above, the variable $txt will hold the
value Hello world!, the variable $x will hold the value 5, and the variable $y
will hold the value 10.5.
Note: When you assign a text value to a variable, put quotes around the
value.
11
Lecture 7 web design khalidah ali ahmed
11