Вы находитесь на странице: 1из 88

......................................................................................................

7
1 ...........................................................................9
1.1 .....................................................................9
1.2 ..............................................11
1.3 - .............................11
1.4 .............................................13
1.4.1 PHP.........................................................................................................13
1.4.2 Perl.........................................................................................................15
1.4.3 Python.....................................................................................................17
1.4.4 Ruby.......................................................................................................18
1.4.5 JSP..........................................................................................................20
1.5 .....................................................21
1.5.1 WordPress...............................................................................................22
1.5.2 Joomla....................................................................................................23
1.5.3 Drupal.....................................................................................................24
1.6 ............................................................................................26
1.7 .....................................................................................................28
2 ..................................................................................29
2.1 .....................29
2.1.1 .........................................................................29
2.1.2 ...................................................................................30
2.2 ........................................................31
2.2.1 PHP.............................................................31
2.2.2 CMS/CMF Drupal..................................................................................34
2.2.2.1 Drupal.........................................................................34
230201.1307008.000
.

.
.
.

.
.

2.2.2.2

Drupal...........................................................................37


.

..

115

2.2.2.3 Drupal...................................................................................40

. .

..

..

S-41

2.3 ................................................................41
2.3.1 MySQL......................................................................42
2.3.2 .......................................................................45
2.3.3 .......................................................................................47
2.4 .....................................................................................................48
3 ...........................................................................49
3.1 .................................49
3.3 .................................................................52
4 ........................................................61
5 ....................................................62
5.1 ............................................................................................62
5.1.1 ...............................................................62
5.1.2 ...............................................................67
5.1.2.1 .............................................................68
5.1.2.2 .....................................................................69
5.1.2.3 ........................................................................74
5.1.2.4 .............................................................76
5.1.2.5 ..............................................77
5.2 ....................................................................80
5.3 ..............................82
5.4 .....................................................................................................84
...............................................................................86
........................................87
.....................................................88
...................94
..........................................106

230201.1307008.000
.


, -

.

,
.
, ,

.
,

, .

,
.
,
.
.
()
,
,
.

,
()
( )
.
.

230201.1307008.000
.

.
? .
,
, .
, ,
.

.
.

230201.1307008.000
.

1
1.1

.
,
.
, ,
,
, .


.

. , , .


.

.
, .

, .


, , Microsoft Word
Microsoft Excel ,

230201.1307008.000
.

,
.

,
.
, ,
,
,
.
.

.
.
.
, ,

.
,
,

.

:
1

;
.

230201.1307008.000
.

6 ,
: , ,
.
1.2
.
1.3 -
- , HTTP- ,
-, HTTP-, ,
HTML-, , , -
.
- ,
-, ,
.
, -, -
, URL-.
HTML-, , , - ,
. -
. HTTP.
-, 65 %
( 2011 ), Apache -,
UNIX- .
Apache

Linux, BSD, Mac OS, Microsoft Windows, Novell


NetWare, BeOS.
Apache
.

230201.1307008.000
.

, . .
IPv6.
Apache:
;
;
;
.htaccess.
,
- nginx.
nginx - -, Unix . 0.7.52
Microsoft Windows. nginx ,
, . nginx
- .
nginx:
;
DDoS ;
- -
.
, nginx ,
, ,
apache, .
web- , nginx
,
, vps .

-

230201.1307008.000
.

nginx + Apache. -,
(nginx), - (Apache2),
.
,
nginx .
(, html, javascript- ),
Apache, , ,
. Apache ,
nginx, .
: nginx Apache
,
. Apache
, .
1.4
-,
, ,
, .

: PHP, Perl,
Python, Ruby, JSP.
1.4.1 PHP
PHP (Hypertext Preprocessor)

230201.1307008.000
.

, .

, GNU GPL.
PHP
( JSP, Perl ,
ASP.NET) , ,
,
PHP.

. :
POST GET-,
- ;

(MySQL, MySQLi, SQLite, PostgreSQL, Oracle (OCI8), Oracle,
Microsoft SQL Server, Sybase, ODBC, mSQL, IBM DB2, Cloudscape Apache
Derby, Informix, Ovrimos SQL, Lotus Notes, DB++, DBM, dBase, DBX,
FrontBase, FilePro, Ingres II, SESAM, Firebird / InterBase, Paradox File Access,
MaxDB, PDO);
HTTP-;
HTTP-;
cookies ;
, ;
, ;
XForms.

230201.1307008.000
.

PHP .
TIOBE,
, 2012 PHP 6
. , PHP,
Facebook, Wikipedia .
PHP LAMP
- (Linux, Apache, MySQL,
PHP).
PHP:
;
;
;
;
;
.
:
;
;
.
1.4.2 Perl
Perl
, ,
. ,

Practical

Extraction

and

Report

Language

.

, ,
.

230201.1307008.000
.

. ,
AWK, UNIX.
Perl ,
,
,
,

-,

, .
(
, , ), (,
).

(,

), (
, ),
, .
Perl , .
,
,

, .

.

( ),
() ,
- .
, ,
Perl.

230201.1307008.000
.

Perl5.
10 Perl6.
1.4.3 Python
Python
,

. Python .

.
Python ,

-,

-.
, ,
, ,
.
,
( ).
Python CPython,
.
Python Software Foundation
License,

, .
JVM ( ), MSIL ( ),
LLVM . PyPy
,
.

Python

; , API;
Oracle Metalink;
.

230201.1307008.000
.

; Java API
. , ,
Java Oracle, ,
Sun, , ,
.
, Python
,

.
1.4.4 Ruby
Ruby


- .

. Ruby Perl
Eiffel, - Smalltalk.
Python, Lisp, Dylan CLU.

.
Ruby:
,
, Python;
Java Python;
,
;
- .
Ruby Smalltalk.
.

230201.1307008.000
.

, Ruby
Smalltalk . , 1
Fixnum.
;
,
,
;
.
Ruby, ;
;
. GNU/Linux,
Unix, DOS, Microsoft Windows ( ,
Win32), Mac OS, BeOS, OS/2 .

Ruby

(
). Ruby
- ;

( Unix-

),

1.9;

,
1.9);

Ruby Java .NET , JRuby


Ruby.NET. 2.0
YARV, Ruby

230201.1307008.000
.

. ,
, Rubinus Maglev.

Ruby

PHP:

.
1.4.5 JSP
JSP (JavaServer Pages) , -
, ,
. , JSP
, :
,
HTML, SVG, WML, XML, JSP ,
.
JSP , EL (Expression Language), Java-
JSP-.
JSP ,
java- JSP
Jasper, - java
(JVM). , JSP ,
Java, . JSP

Java server packet, Java EE Web Application,
.war .ear.
, JSP , JSP ,
.

230201.1307008.000
.

JSP: PHP,
, ,
.

,
PHP. ,
, , ,

-,
.
1.5


Content Management System ( ),

-.
(CMS) -
,
, .
CMS:
,
;
: , ,
, ;
;
, , .

: , , , ,
.

230201.1307008.000
.

. ,
, .
,
.

,
PHP: WordPress, Joomla, Drupal.
1.5.1 WordPress
WordPress
, GNU GPL. CMS
PHP, MySQL.
-.

.
WordPress, , CMS
. ,
,
, .
WordPress .
.
,

.

.
.
CMS

230201.1307008.000
.

,
, HTML.
WordPress :
;
;
.
1.5.2 Joomla
Joomla ,
PHP JavaScript,
MySQL

,
GNU GPL.
CMS Joomla
.
.

.
.
.
CMS ,
.
,
.
Joomla ,
, -,
, . ,
Joomla

.
.

230201.1307008.000
.


Joomla, , , ,
. ,
.
, ,
,
,
.

CSS HTML.
.
1.5.3 Drupal
Drupal (CMS),
PHP
( MySQL, PostgreSQL ). Drupal
, GPL,
.

, .

Drupal

. .
.
, Drupal,
.
.
,
.

230201.1307008.000
.

Drupal ,
, , ,
.
,
.
, , , , ,
, , ,
.
,
.

, 128 .
Drupal, WordPress Joomla, CMS,
CMF (Content Management Framework). CMF - (
) .
, . CMS
, CMF CMS (
) .
, CMF,
CMS,
(
) (
, ).
CMF ,

,
CMF
CMS.
.

230201.1307008.000
.

, , ,
CMF.
,
.
,
CMS/CMF Drupal 7 , ,
,
. Drupal ,
API, .
CMS , Drupal.
Drupal
. Drupal ,
,
,
Drupal, .
1.6
()

,
. ,
.

MySQL. MySQL
. MySQL
Oracle,
.

230201.1307008.000
.

Sun Microsystems,
MySQL AB. GNU General
Public License, .
,
,
.
MySQL .
WAMP, AppServ, LAMP
, XAMPP. MySQL ,
,
,
MySQL .
MySQL
:
MyISAM, , InnoDB,
. ,
MySQL EXAMPLE,
.
GPL-, MySQL
.

MySQL


, CMS/CMF Drupal.
, -
MySQL ,

. , MySQL,
.
MySQL ,
.

230201.1307008.000
.

,
MySQL.
1.7


.

.

, ,

, .

-
nginx Apache .

PHP

.
MySQL.

- CMS/CMF Drupal 7.

230201.1307008.000
.

2
2.1

-,
HTTP- .

-,

,
, .
2.1.

2.1

:
.

.
2.1.1


:
( );
.

230201.1307008.000
.

;

;

;

.

.

:

, , ,
,
;
;
;

,
;
,
: (
) .
2.1.2
,
.
:

230201.1307008.000
.

;
,

;

, (
, , ),
;
,
;

,
(, ).
2.2
2.2.1 PHP
PHP (. PHP: Hypertext Preprocessor PHP:
; Personal Home Page Tools

-)

-.

-
,
-.

, GNU GPL.
1994
Perl/CGI -,
.

230201.1307008.000
.

HTML-.
Personal Home Page ( ).
Perl ,
C PHP/FI
(. Personal Home Page / Forms Interpreter
/ ).
1997 -
, C PHP/FI 2.0.
1% ( 50 ) - .
PHP 13 2004 .
Zend (Zend Engine 2),
.
XML. ,
, Java. ,
,

, .
,
,
, PHP 5.0.
PHP 2006 .
, , ,
POSIX ,
safe_mode, magic_quotes_gpc register_globals
php.ini.
. 2010 PHP6
- .
PHP6 ,
5.4.

230201.1307008.000
.

PHP

JSP,

Perl

ASP.NET) , ,
,
PHP.

. :
POST GET-,
- ;

(MySQL, MySQLi, SQLite, PostgreSQL, Oracle (OCI8), Oracle,
Microsoft SQL Server, Sybase, ODBC, mSQL, IBM DB2, Cloudscape Apache
Derby, Informix, Ovrimos SQL, Lotus Notes, DB++, DBM, dBase, DBX,
FrontBase, FilePro, Ingres II, SESAM, Firebird / InterBase, Paradox File Access,
MaxDB, PDO);
HTTP-;
HTTP-;
cookies ;
, ;
, ;
XForms.
PHP .
TIOBE,
, 2011 PHP 5
. , PHP,
Facebook, Wikipedia .

230201.1307008.000
.

LAMP

- (Linux, Apache, MySQL,


PHP).
PHP . ,
foreach, Perl.

, .
PHP.
PHP , , <?
php ?>. , , .
PHP- HTML-.
2.2.2 CMS/CMF Drupal
2.2.2.1 Drupal
2000 .
. , ,
.
Acquia, ,
,
. drupal.org,
20 ,
drupal.ru . Drupal
, GPL, PHP
.
Drupal ,
( , , , , , ,
),
:

230201.1307008.000
.

,

( ),
.
: ,
, ,
,
;
Drupal,
, ()
,
;

, ;
OpenID
(, , LiveJournal,
),
OpenID
, ;
;
(
, ) ,
,
, , ,
, ;
(template engines),
.
, :

230201.1307008.000
.

LDAP Active
Directory ( -);
-,
Webmoney, . ;
(CRM Customer
relationship management);
, ,
, ,
, ()
, ;
(Search engine optimization SEO)
,
(keywords, ),
, - ;
Google Yahoo, Google Maps API,
Flickr API, Youtube ;
(Memcache, xCache,
APC), Drupal
;
SimpleTest;
, Sphinx;
,
.
Drupal :
PHP. , API
Drupal PHP .

230201.1307008.000
.

( PHP 5). Drupal ,


PHP ;
( )
API
. API,

.

Drupal. API
,
.
,
API, .
2.2.2.2 Drupal
Drupal :
(), , ,
,
.
( , , ,
),
(hooks) .
, (,
) .

, ,
.
Drupal (API)
: , , ,
.

230201.1307008.000
.

.
DB API, Drupal ANSI- SQL ,
()
.
( Drupal
MySQL PostgreSQL) ,
.
,
, , IBM DB2, Oracle MSSQL.
Drupal
(Forms API). , Drupal
,
.
HTML-.
,
.
(,
CAPTCHA) (
).
Drupal
: , ,
. Node API
: , , ,
.

Drupal .

,

.

230201.1307008.000
.

.
, ,
.
,



, .
Drupal ,
, -,
; -,
. ,
,
HTML-,
PHP- .
, Drupal
. Drupal
, .
- Drupal
PHPtemplate, Smarty, PHPTAL, Easy Template
System .
,
, .
,

Drupal

, , ,
, .
, ,
HTML-.
: ,

230201.1307008.000
.

,
.
2.2.2.3 Drupal
, Drupal
,
:
CCK Content Construction Kit ( Drupal 7),
,
: , , -
-,
.
Node API, ;
Views

, ,
, , ,
. ,

SQL- ;
Panels , HTML, ,
,
Drupal. , ,
,
, , ;
Webforms
, ;
ImageCache ( Drupal 7).

(preset). ,
.

230201.1307008.000
.

ImageCache ,
,
, , . ,

,
.
Drupal
.
Drupal ,

Ubercart Drupal Commerce.

API,
Drupal .
,
. , Ubercart Commerce
,
.
2.3

MySQL.
,

, ,

.
2.3.1 MySQL
MySQL
. MySQL Oracle,
.

230201.1307008.000
.

Sun
Microsystems, MySQL AB.
GNU General Public License,
. ,
,
.
MySQL - .
.
-

. , ,
, ,
MySQL.
,
.
- - ,
, .
MySQL - .
,
, .
,

. SQL MySQL

, .
MySQL - .
,
. Internet .

.

230201.1307008.000
.

.
MySQL GPL (GNU General Public
License), http://www.gnu.org/licenses/, ,
.
GPL
MySQL- ,
Oracle.
MySQL ,
.

MySQL

.
MySQL

.

. , MySQL ,
.
, MySQL
Internet.
MySQL -,
SQL-,
,
,
(API).
MySQL :
MySQL C C++.
;
;
MySQL API Delphi, C, C++, , Java, , Perl, PHP,
Python, Ruby, Smalltalk Tcl, .NET,
.

230201.1307008.000
.

ODBC ODBC-
MyODBC;
. , ,
,
;
- ;
;

(one-sweep multi-join);
- , ;
SQL-

, ,
.
;
MySQL- Purify (
), Valgrind, GPL-.
2.3.2

. (
Drupal) 5 .
practice_type
( 2.1).
2.1 practice_type

id
type
name

230201.1307008.000
.

practice_subject ( 2.2)
.
2.2 practice_subject

sid
type
name
weight



()

practice_task
( 2.3).

2.3 practice_task

tid
type
sid
text_value
text_format

Filter
practice_practice
( 2.4).
2.4 practice_practice

pid
type


,

.

230201.1307008.000
.

title
uid
status
date_start
date_finish
criteria


: 0 ,

1 -
Unix

timestamp

Unix timestamp

practice_practice_task

, ( 2.5).
2.5 practice_practice_task

ptid
type
pid
tid
date
uid
status


Unix

timestamp
-,


: 0

, 1 , 2
, ,
, Drupal
, .

230201.1307008.000
.

2.3.3

.
2.1.

230201.1307008.000
.


id

id

id


id

id
.

230201.1307008.000

id

2.1
2.4


-,
, , .

:
.

Drupal
PHP MySQL .

230201.1307008.000
.

3
3.1


- ()
.

( 3.1).

3.1
,
,
- ,

( 3.2).

3.2
.

230201.1307008.000
.


.
, ,
, .
, , , ,
,
.
,
,
( 3.3).

3.3

, ,
.

, ,
, ,
( 3.4).

230201.1307008.000
.

3.4

.

, ( 3.5).

3.5
.

230201.1307008.000
.


, ,
,
,
( 3.6).

3.6

, ,
.
,
.

.

230201.1307008.000
.

.

,
( 3.7).

3.7
,
.

,
.
,

Drupal



,
. , ,
,
, 3.8.

230201.1307008.000
.

3.8
,
,
.



( 3.9).

3.9

: , ,
, .
.

230201.1307008.000
.

,
, ,
, .

,
, ,
.
(
), 3.10 3.11.

3.10

230201.1307008.000
.

3.11

, .
( 3.12).

3.12

,
.

,
( 3.13).

230201.1307008.000
.

3.13

3.14.

3.14

. ,

.
3.2

230201.1307008.000
.


,
, .

.
( 3.15).

3.15

,
,
.
,
, -. ,
3.16.

.
.
,
, ,
,

.

230201.1307008.000
.

3.16

,

( 3.17).

3.17
3.3

230201.1307008.000
.


Drupal, .
:
. ,

.
:
;

;
;

;


;
;

;
.
:
( , )
;


;
,
.
.

230201.1307008.000
.

230201.1307008.000
.

. ,
,
.

,

,
.
5.1
5.1.1
34
-
30 1999 . N 52- [1],

,
, . ( 5.1)

2.2.2.542-96

,
- [2].
23-05-95
[3] .
,
-
1,5%.
.

230201.1307008.000
.


-
.
5.6

11.5
0.5

5.1
,
.
6 2, 20 3, 12.2.032-78
. [4].
, ,
,
.

230201.1307008.000
.


.
,
12.1.003-83 . . [5].

.

-
0,7-0,8; 0,5-0,6; 0,3-0,5.
, , ,
, .

(, , )
,
, .

( 5.2).

5.2
.

230201.1307008.000
.

,
, 750 .
630 , 620 , 525 ,
. ,
. 600
900 . , 800
800 , 725 .
()
,
-
.
- ,
400 550 . 400 , 400 .
300 , - 400 .

.
,
600 - 700 , 500
- .
100 300 , .

50 . , ,
35 ( ),
, [5].

2.2.2/2.4.1340-03

-
[6].
.

230201.1307008.000
.

, 40 ,
28 60 . f = 60 .
,

,
.

() ,
. ,

. ,

0,4 - 0,6
, .


( ,
), .

.
()
,
-
.

,
.

. 2 .

230201.1307008.000
.

(
,
,



) [4].
1
(,

) 2.2.4.548-96
[7].

( 0,5 1 ) [3].
- IV.
5.1.2


.
(
, , , ,
..), (
), ( , ,
..), (
).
,
()
,
.
.

230201.1307008.000
.

5.1.2.1
[7] 2.2.4.1294-03

[8] ,
-
- ,
1 (,

)

[6]

-
, ,
.
1
[6]: - 19-21,
- 40 - 60% ( - 75%) ,
0.1/.
,
,
, ,
, ,
.

.

.

230201.1307008.000
.

5.1.2.2
(
).
,
,
[3].
,
,
[2].
, ,
:
;
;
.
, ,
.


300 - 500 .

,
, .
300 .

, .

, 20 .
,

230201.1307008.000
.

,
, ,
. ,
, ,
.

= 300 2.2.1/2.1.1.127803

[9].
S = 64,4 2 ,
= 11,5 , = 5,6 , h = 4 .
.
:

100 S Z K
N n
,

(5.1)

- , ,

- , ,

S - , . ,
Z - (
1,1),

K - ,

N - ,
n - ,

230201.1307008.000
.

- (%).
(i) :

S
H ( A B) ,

(5.2)

S - , . ,

H - , ,
A, B - , .
1) :

H h h hc

(5.3)

h - 4 ,

- () 0,8 ,

hc

- 0,25 * (

h h

),

,
02.
:

H 4 0,8 0,8 2,4


2) i:

S
64,4

1,57 2
H ( A B ) 2,4 (11,5 5,6)

3) i

rc 50%

r 70%

, :

K 1,3 - ( 02),

60 % - .
.

230201.1307008.000
.

4)
1,1 :

L H 1,1 2,4 2,64

.
5) N:

N N N
N B / L 5,6 / 2,64 2
, ,
.

B L 5,6 2,64

1,48
2
2
-

.
2 .

N ( l ) / l (11,5 2) / 2 4,75 5

A N l 11,5 5 2

0,75
2
2
-

.
, :

N N N 2 5 10
6) .
,

300 500 .

300 .

100 S Z K 100 300 64,4 1,1 1,3

2302
N n
10 2 60

230201.1307008.000
.

.
- 20.
20 . 20 1 = 1060 ,
,

N 1439 10 14390
,
:

14390
14
1060

P W N 20 14 280
7)
5.3.

230201.1307008.000
.

5.6

11.5

5.3 .

,
.
- 10,
2 20 ,

14390 .


[3].
5.1.2.3

.

230201.1307008.000
.

,
,
.

, .
,
, ,
.
,
, .
,

.
, ,
,
, . ,
127 , 220 380 ,
40-50 .
42 , 110 .
.

220 ( 12.1.019-79 .
[10]).

.

:

230201.1307008.000
.


;
,
,
;
,
,
;

;
, ,
, ;
,
,
;
,
, .

, .

6 .
301.5,
3.


, 1 .

230201.1307008.000
.

5.1.2.4

),

, , ,

[6],

, ,
.
[5]
60 .
,
.
, ,
, (12
35 ):
L = 35 + 10lg12 46 .

:
,
.
,
40 .
.
.

230201.1307008.000
.

3500 /.
1800 /
.
,
.

,

.
5.1.2.5

().
,
,
,
, .
,
.

,
.
12.1.006-84 CCT.
epoae o paoaco. oce po a paox ecax
peoa poee opo [11],
, /:
0,5;
1,0;
( ) 10;
.

230201.1307008.000
.

15;
20.
1 /

.

.

.

.
.
,

. ,
, , ,
.

50
.
,


[2].
,
:
1)

MPR II;

2)

TCO;

3)

50948-2001.
.

230201.1307008.000
.

, , .
-, ,
.
.
-,
,

15110 ,
. , , ,
. ,
:
.
,
.
, -, -
,

.
(), ,

1030

,
.
.

, .
1 2 , ,
, -
. 2 400
.

230201.1307008.000
.

, ,
.
,

, .

50948-2001

[12].
-,

[2].
5.2

,
- .
,
. (

),

.
,
, .
( ), .

(,
). ,
.

230201.1307008.000
.

. -, ,
, ,

.

- .


(,
HP, Canon, Epson, Samsung).

()
.
, , ,
( ).
5.3
,

.

01-03
[13] 12.1.044-89. .
.
[14].
,
.
.

230201.1307008.000
.

, .
,
(III).
:
1)

2)

.
,
;
3)

;
4)

, ;
5)


12.12.2007 645 "

"

" [15].

: ,
.

.
,

.
.

230201.1307008.000
.

104,
60
212,
.
,
, ,
. 1,35 ,

15 .
, .


.
,
,
,

,

.

, , ( 5.4).

230201.1307008.000
.

5.4
5.4

,


, ,
, - ,
[7], [6], [3], [5], [10], [13].


.
[7].

[13].
,
.

230201.1307008.000
.

2 [4].

230201.1307008.000
.

230201.1307008.000
.

230201.1307008.000
.



, !

230201.1307008.000
.

230201.1307008.000
.

230201.1307008.000
.