,,,
..
-
.
:
362
-
:
..
2005
, . . 31- , 2 5 .
1.
1.1
1.2
1.2.1
1.2.2 Zope
1.2.3 PHP
1.2.4
1.3
2.
2.1
2.2
2.3
2.4
2.5
1.
1.1
. , . , , , , . : , , , , , , , . , , , , .. , , . :
- ;
- .
1.2
1.2.1
, . :
( );
( ).
, , .
PHP ZOPE:
PHP - server-side , html . ;
ZOPE , web- .
.
1.2.2 Zope
Zope - - , , web- .
"-" . -, Zope Python, - .
-, Zope " " - URL, , ( ), .
-, ( ) - ZODB.
- . Zope - , , .
Zope Payton Unix Windows; ZODB - Data.fs - ), .
WWW (HTTP, CGI ..) . web- .
Zope - . - , , Zope .
C Zope :
-
- , , Python
web - ( ) , web-
- , , , ( ) , ( , , , ..)
, , - . . Zope , , .
Zope :
(DTML)
(ZODB, ZCatalog )
API
API Zope www-, HTTP / XML-RPC (Zserver, ZPublisher, ZODB, DTML, Catalog) Zope, Python.
web-:
(DTML)
www-
:
www- , ,
: dtml-in , Catalog Splitter.
- Zope , , ( 20-30); Z- ,
1. Zope
.
,
CVS
- ; PerlMethods
, . , lock . , ( Zope)
Zope.
o -
o ; , , , , .
1.2.3 PHP
PHP server-side , html . PHP ASP, unix-like web- apache, MS IIS -. , PHP -. PHP - , . , , sql MS Access web- sql, php, php- sql , , . SQL. PHP, , PHP apache+php+sql.
PHP , CGI-. , , cookies, , , , , .. .. , PHP (databases), - Web-. , PHP IMAP, SNMP, NNTP, POP3 HTTP, .
PHP . , , PHP. ( ) . , PHP, . PHP - , , Perl-. , , , .
PHP WEB- , web- - . : , , , , .. CGI-, Perl. CGI- . , CGI, , . - , CGI, . PHP - Web-, ASP Microsoft.
PHP:
1. PHP , , , . , , -, PHP, , CGI-, .
2. , , , PAN Perl. . PHP , CPAN, , .
4. (session), , , ASP. PHP .
1.2.4
web-- Zope php Php. PHP C Perl. , , PHP. . , PHP, . Perl- PHP- . (MySQL ) PHP-MySQL -. , , Windows, , Unix. , PHP CGI-, , , web- Apache IIS. , , , - . , , , - .
- PHP , CGI-. : , , (cookies). PHP (databases), Web- . PHP IMAP, SNMP, NNTP, POP3 HTTP, (sockets) .
1.3
, , , , , . , , . - . 8 7 . 10 100 /. . S.u.S.E Linux/Apache
:
- . , .
- , , .
2.
2.1
, PHP -, . PHP- , - ( , , ..). , , HTML , , , .
, " - !" " - !". .
,
<?php
print
"Hello, world."; ?>
- , :
<?php
class helloWorld {
function
myPrint() {
print
"Hello, world.";
}
$myHelloWorld = new
helloWorld();
}
$myHelloWorld->myPrint();
?>
, PHP . , , " ". (, Zend).
- PHP4 , . ( - PHP), , . , PHP4 , . , PHP5.
osCommerce phpMyAdmin. . HTML, PHP.
- - , , . " ". - , , .
- , . . - , , . , . - :
1. . , , - .
2. . , , .
3. . , , , .
-
- . , , . , , . , .
, PHP .
- PHP, . , - , HTML.
2.2
, 2
2.1
2.3
2.2
main.php
:
:
control_styd_form.html
:
: Radio-box, ,
: Radio-box, ,
control_stud.php
:
:
:
infa.php
: infa.php
:
:
infa1.php
: infa1.php
:
:
infa2.php
: infa2.php
:
:
2.4
, mc, , , Quanta Plus.
Quanta Plus , , CSS , W3C.
, Quanta Plus KDE. Quanta Plus open source -, ? , , KDE.
Quanta Plus - (Multiple Document Interface, MDI ). . , , , . Kommander Quanta Plus, .
Quanta Plus . : , . , , .
. , , , Quanta Plus. , , , , .
, - , .. .
, . , CSS .
( 1) ( 2.3.) . . .
2.5
Web-, (Address) http://localhots/~student/proga/main.php Enter. . ( 2.1), 4 :
2.3 http://localhots/~student/proga/main.php
http://localhots/~student/proga/control_stud_form.html , , ( 2.2).
2.4 http://localhots/~student/proga/control_stud_form.html
, , 362 . http://localhots/~student/proga/control_stud.php, /home/student/1/362.txt . 362 ( 2.3). , http://localhots/~student/proga/control_stud_form.html.
2.5 - http://localhots/~student/proga/control_stud.php
. http://localhots/~student/proga/control_stud.php , http://localhots/~student/proga/control_stud_form.html.
.
http://localhots/~student/proga/infa.php, /home/student/1/infa.txt. . . http://localhots/~student/proga/infa1.php, /home/student/1/infa1.txt, . http://localhots/~student/proga/infa2.php, /home/student/1/infa2.txt. .
, , - . , , , , , .
, .. .., , .. .., .
, , . server-side , Unix-like , MS IIS. (databases), web-.
, web-, , . web- . . , , , , .
, , , .
,
http://localhost/~student/prog/main.php
<html>
<head>
<title> " "</ </title>
</head>
<body>
<p align=center><h1> " "</h1><br>
<p><strong><a href="control_stud_form.html"> </a></strong></p>
<p><strong><a href="infa.php"> </a></strong></p>
<p><strong><a href="infa1.php"> </a></strong></p>
<p><strong><a href="infa2.php"></a></strong></p>
</body>
</html>
http://localhost/~student/prog/control_stud_form.html
<html>
<head>
<title> " "</title>
</head>
<body>
<form method="get" action="control_stud.php">
<h1> :</h1>
<strong><input type="radio" name="nomer" value="322"></strong>322<br>
<input type="radio" name="nomer" value="332">332<br>
<input type="radio" name="nomer" value="342">342<br>
<input type="radio" name="nomer" value="352">352<br>
<input type="radio" name="nomer" value="362">362</p>
<p><h2><input type="submit" name="submit" value=" "></h2></p>
<p><a href="main.php"> </a></p>
</form>
</body>
</html>
http://localhost/~student/prog/control_stud.php
<?
$nomer=$_GET["nomer"];
if ($nomer=="") {
header("Location: http://localhost/prog/control_stud_form.html");
}
if ($nomer=="322") {
$filename="/home/student/1/322.txt";
}
else if ($nomer=="332") {
$filename="/home/student/1/332.txt";
}
else if ($nomer=="342") {
$filename="/home/student/1/342.txt";
}
else if ($nomer=="352") {
$filename="/home/student/1/352.txt";
}
else if ($nomer=="362") {
$filename="/home/student/1/362.txt";
}
$whattoread=fopen($filename,"r") or die ("Nevizmojno otkrit fayl");
$file_contents=fread($whattoread,filesize($filename));
$new_file_contents=nl2br($file_contents);
$msg="<br>$new_file_contents";
fclose($whattoread);
?>
<html>
<head>
<title> </title>
</head>
<body>
<p><h2> <? echo "$nomer"; ?></h2>
<strong><? echo "$msg"; ?></strong>
<p><a href="control_stud_form.html"></a></p>
</body>
</html>
http://localhost/~student/prog/infa.php
<?
$filename="/home/student/1/infa.txt";
$whattoread=fopen($filename,"r") or die ("Nevizmojno otkrit fayl");
$file_contents=fread($whattoread,filesize($filename));
$new_file_contents=nl2br($file_contents);
$msg="<br>$new_file_contents";
fclose($whattoread);
?>
<html>
<head>
<title> </title>
</head>
<body>
<h2>About program</h2>
<strong><? echo "$msg"; ?></strong>
<p><strong><a href="main.php"> </a></strong></p>
</body>
</html>
http://localhost/~student/prog/infa1.php
<?
$filename="/home/student/1/infa1.txt";
$whattoread=fopen($filename,"r") or die ("Nevizmojno otkrit fayl");
$file_contents=fread($whattoread,filesize($filename));
$new_file_contents=nl2br($file_contents);
$msg="<br>$new_file_contents";
fclose($whattoread);
?>
<html>
<head>
<title> </title>
</head>
<body>
<h2>Instruktsiya polzovatelya</h2>
<strong><? echo "$msg"; ?></strong>
</p><strong><a href="main.php"> </a></strong></p>
</body>
</html>
http://localhost/~student/prog/infa2.php
<?
$filename="/home/student/1/infa2.txt";
$whattoread=fopen($filename,"r") or die ("Nevizmojno otkrit fayl");
$file_contents=fread($whattoread,filesize($filename));
$new_file_contents=nl2br($file_contents);
$msg="<br>$new_file_contents";
fclose($whattoread);
?>
<html>
<head>
<title></title>
</head>
<body>
<h2></h2>
<strong><? echo "$msg"; ?></strong>
</p><strong><a href="main.php"> </a></strong></p>
</body>
</html>
web- :
" " , , "" " ".
, . , , "", , .
"", " ".
, , " ". "".
, "". "".
"", . "".
, .
.. -
Copyright (c) 2024 Stud-Baza.ru , , , .