158 PHP MySQL PHP PHP ApacheSQL PHP&MySQL PHP&MySQL ( ) / ISBN X/T

Size: px
Start display at page:

Download "158 PHP MySQL PHP PHP ApacheSQL PHP&MySQL PHP&MySQL ( ) / ISBN X/T"

Transcription

1 PHP&MySQL

2 158 PHP MySQL PHP PHP ApacheSQL PHP&MySQL PHP&MySQL ( ) / ISBN X/TP ~

3 Linux Linux Apache PHP MySQL PHP&MySQL PHP PHP Apache PHP SQL PHP MySQL 1 12 PHP MySQL 3 FabulousWeb 4 PHP 5 LinuxApachePHP MySQL

4 1 PHP PHP PHP PHP PHP PHP PHP HTTP GIF MySQL

5 II PHP&MySQL 2.2 MySQL MySQL SQL MySQL PHP PHP MySQL FabulousWeb FabulousWeb FabulousWeb FabulousWeb FabulousWeb FabulousWeb

6 III SourceFab FabulousWeb CLE PHP PHP/Zend afterburner Cache

7 IV PHP&MySQL Zend Cache MySQL Apache Apache MySQL PHP require_once include_once operator === print <<< PHP/Apache/MySQL MS Windows PHP FTP

8 V Session A A.1 Linux/OpenSource A.2 Apache/PHP A.3 MySQL

9 1 PHP PHP PHP PHP HTTP

10 2 PHP&MySQL 1.1 PHP PHP 1995 Rasmus Lerdorf PHP Rasmus Perl CGI PHP Personal Home Page Rasmus Perl C Rasmus PHP-FI Rasmus PHP-FI Zeev Suraski Andi Gutmans PHP Parser PHP PHP PHP PHP Java Java HTML ASP(Active Server Page) PHP PHP Personal Home Page( ) Personal

11 1 PHP PHP PHP HTML.php MySQLmSQL Postgre SyBaseOracle dbase Informix ODBC Apache PHP Linux/BSD/Uinx Win32 Web PHP PHP Apache Unix/Linux WWW Server Microsoft Windows NT IIS Apache WWW Server NetCraft(http// WWW Server Apache 59.69% Apache Apache Apache PHP Apache PHP Apache PHP PHP

12 4 PHP&MySQL <?... <?php... HTML PHP HTML Proxy GIF DB 1.2 PHP PHP PHP Linux/Unix/BSD Windows Linux PHP Apache GIF GD library ( ) MySQL PHP Apache PHP 4.0.4MySQL GD library 1.3 GD library (1) GDtar xvfz gd_1.3.tar.gz (2) gd1.3 cd gd1.3 (3) make (4) libgd.a /usr/lib cp libgd.a /usr/lib MySQL

13 1 PHP 5 (1) mysqltar xvfz mysql tar.gz (2) configure --with-charset=gb2312 (3) make;make install (4) mysql_install_db (5) safe_mysqld --log & configure charset GB2312 MySQL GB2312 Apache + PHP module (Static) (1) tar xvfz apache_ tar.gz (2) tar xvfz php tar.gz (3) cd ~/ apache_ (4) apache ( /usr/local/apache ) configure --prefix=/usr/local/share/apache (5) cd ~/php (6) php ( mysql ) configure --with-mysql --with-apache=../apache_ with-gd=../gd1.3 enable -track-vars (7) make (8) make install (9) cd ~/php (10) apache configure --prefix=/usr/local/share/apache --activate-module = src/modules php4/ bphp4.a (11) make (12) make install (13) cd ~/php (14) cp php.ini-dist /usr/local/lib/php.ini

14 6 PHP&MySQL (15) apache (.php PHP ) httpd.conf srm.conf AddType application/ x-httpd-php.php (16) httpd /usr/local/share/apache/bin/apachectl start PHP /usr/local/lib 12 php.ini PHP Apache + PHP module (DSO) Apache Apache Apache DSO(Dynamic Shared Objec) Apache DSO (1) tar xvfz apache_ tar.gz (2) tar xvfz php tar.gz (3) cd ~/ apache_ (4) apache ( /usr/local/apache ) configure --prefix=/usr/local/share/apache --enable-shared=max (5) make (6) make install (7) /usr/local/share/apache/bin/httpd l http-core.c mod_so.c (8) cd ~/php (9) php ( mysql ) configure --with-mysql --with-gd=../gd1.3 with-apxs=/usr/local/share/apache/ bin/

15 1 PHP 7 apxs --enable-track-vars (10) make (11) make install (12) cp php.ini-dist /usr/local/lib/php.ini (13) apache (.php PHP ) httpd.conf srm.conf AddType application/ x-httpd-php.php (14) httpd /usr/local/share/apache/bin/apachectl start PHP 8 PHP Apache PHP 1 <html><body> <?php for($t=1;$t<=5;$t++) { echo "<p>hello ".$t." times"; }; </body> </html> (ex1-1.php) php <?php... html php 3 <?... php $ $t echo

16 8 PHP&MySQL. C 2 <html><body> <? $f=fopen("/tmp/counter.data""r"); $counter=fread($f3); echo " ".$counter; fclose($f); $counter++; $f=fopen("/tmp/counter.data""w"); fwrite($f$counter); fclose($f); </body></html> (ex1-2.php) =fopen( ) r = w = fread( ) fwrite( ) $counter++ (C ) Reload

17 1 PHP PHP PHP PHP PHP 4 (int) (double) (string) (bool) PHP $ PHP <html><body> <?php $t=790; $t=$t."237"; echo $t </body></html> (ex1-3.php) $t=790 $t $t PHP is_int()is_doubleis_string() is_bool()

18 10 PHP&MySQL <html><body> <?php $t=790; $t=$t."237"; if (is_int($t)) echo "integer!"; if (is_string($t)) echo "string!"; </body></html> (ex1-4.php) PHP PHP <html><body> <?php $A[1]="Rollaned"; $A[2]=68.7; $A[3]=456; $A["Jessie"]=99; echo "<p> ".$A[1]; echo "<p> ".$A[2]; echo "<p> ".$A[3]; echo "<p> ".$A["Jessie"]; </body></html> (ex1-5.php) PHP ( )

19 1 PHP 11 PHP PHP PHP PHP <?php $A[0]=123; $A[2]=456; $A[3]=789; $B[ x ]=991; $B[ y ]=992; $B[ z ]=993; (ex1-6.php) $A $B $B["x"] $B $A $B <?php $A[0][0]=123; $A[1][1]=456; $A[1][2]=789; $B[ x ][ x ]=991; $B[ y ][ x ]=992; $B[ z ][ y ]=993; (ex1-7.php)

20 12 PHP&MySQL PHP array array <?php $A=array( 0=>1231=>4562=>789 ); $B=array( x =>991 y =>992 z =>993 ); (ex1-8.php) => => A[0] A[1] array <?php $A=array( 0=>array( 0=>1231=>02=>0 ) 1=>array( 0=>01=>4562=>789 )

21 1 PHP 13 ); (ex1-9.php) scope PHP (local) PHP function name(...) {...} <html><body> <?php $a=2; echo "<p> $a"; function test() { $a=5; echo "<p> $a"; }; test(); $a++; echo "<p> $a"; </body></html> (ex1-10.php)

22 14 PHP&MySQL $a=2; echo "<p> $a"; test(); $a++; echo "<p> $a"; test() function test() { $a=5; echo "<p> $a"; }; $a test() $a test() $a $a test() $a Global PHP Global Global <html><body> <?php $a=2; echo "<p> $a"; function test() { global $a; $a=5; echo "<p> $a";

23 1 PHP 15 }; test(); $a++; echo "<p> $a"; </body></html> (ex1-11.php) Global Global global $a $a=5 PHP GLOBAL <html><body> <?php $a=2; echo "<p> $a"; function test() { $GLOBALS["a"]=8; $a=1; echo "<p> $a"; }; test(); $a++; echo "<p> $a"; </body></html> (ex1-12.php) $GLOBAL["a"] "a" $a [ ] test() $a++ $a test() $a

24 16 PHP&MySQL PHP $GLOBAL static variable <html><body> <?php function test() { static $a=1; $a++; echo "<p> $a"; }; test(); test(); test(); </body></html> (ex1-13.php) static $a=1 $a 1 $a test() 2 test() $a++ $a test() $a 3 static $a=1 test()

25 1 PHP 17 PHP 0 <html><body> <?php function test() { static $A; // static $A=array(567) $A[0]++; $A[1]++; $A[2]=$A[2]+2; echo "<p> $A[0]$A[1]$A[2]"; }; test(); test(); test(); </body></html> (ex1-14.php) PHP WWW PHP <html><body> <? $foo=123; echo "<p> $foo"; $foo=$foo+0.456;

26 18 PHP&MySQL echo "<p> $foo"; $foo=$foo." is an float"; echo "<p> $foo"; </body></html> (ex1-15.php) 1 foo foo foo=foo foo 3 foo foo=foo."is a float" foo PHP PHP gettype(variable) integer float string array object unknown type gettype settype(string varstring type) var type type gettype 5 gettype PHP is_int is_floatis_stringis_array is_object is_int (true) is_int(variable) (false) PHP PHP ss (int)ss ii ii=(int) ss (float) variable variable

27 1 PHP PHP <html><body> <?php $x=7; $y="x"; echo "<p> ".$$y; $z="y"; echo "<p> ".$$$z; </body></html> (ex1-16.php) 1 $x=7 2 $y="x" 3 echo $$y PHP $$y $y "x" $x $x 7 $$$z $x 7? CGI button 100 button button1button2 button3...button100 value 1 buttonx PHP ( ) <html><body> <?php for($t=1;$t<=100;$t++) {

28 20 PHP&MySQL $x="button".$t; if ($$x==1) { echo "Pressed button".$t; break; }; }; </body></html> (ex1-17.php) <html><body> <?php if ($button1==1) echo "Pressed button1"; if ($button2==1) echo "Pressed button2"; if ($button3==1) echo "Pressed button3";... if ($button100==1) echo "Pressed button100"; </body></html> (ex1-18.php) PHP PHP C HTML PHP <?php... html html

29 1 PHP 21 <?php... html <html><body> <?php $winner="eric Clapton"; <p>... <?php echo $winner; </body></html> (ex1-19.php) PHP 1 $winner 2 $winner Eric Clapton C $A 38 $A=38 $A Rollaned $A="Rollaned" $A="38" $A $A { $x=3; $y=$x+4; echo $y; }

30 22 PHP&MySQL IF IF 3 if (condition) statement; if else ; if (condition) statement1; else statement2; if elseif elseif else ; f (condition1) statement1; elseif(condition2) statement2; elseif(condition3)... else statementn; condition $x 40 larger than 40 $x 30 less than 30 between 30 and 40 <html><body> <?php $x=37; if ($x>40) echo "larger than 40";

31 1 PHP 23 elseif ($x<30) echo "less than 30"; else echo "between 30 and 40"; </body></html> (ex1-20.php) WHILE WHILE while(condition) statement; condition {} condition WHILE 1 20 <html><body> <?php $x=1; $ODD=""; $EVEN=""; while($x<=20) { if (($x%2)==1) $ODD=$ODD." ".$x; else $EVEN=$EVEN." ".$x; $x=$x+1; }; echo "<p> ODD = ".$ODD; echo "<p> EVEN = ".$EVEN; </body></html> (ex1-21.php)

32 24 PHP&MySQL DO WHILE DO WHILE WHILE WHILE condition DO WHILE DO WHILE DO WHILE do statement; while(condition); 1 9 <html><body> <?php $x=1; do { echo $x; $x=$x+1; } while($x<10); </body></html> (ex1-22.php) FOR FOR C C FOR WHILE DO WHILE FOR FOR for(exp1;exp2;exp3) statement; exp1 for exp3 statement exp2 statement exp2 statement for 1 9

33 1 PHP 25 <html><body> <?php for($x=1;$x<=10;$x=$x+1) echo "$x "; </body></html> (ex1-23.php) exp1 $x=1 $x=3 exp3 $x=$x+1 $x=$x+2exp2 $x<=10 $x<=15 <html><body> <?php for($x=3;$x<=15;$x=$x+2) echo "$x "; </body></html> (ex1-24.php) for <html><body> <table border=1> <tr> <?php for($x=1;$x<=9;$x=$x+1) { echo "<td>"; for($y=1;$y<=9;$y=$y+1) echo "$x * $y = ".$x*$y."<br>"; echo "</td>"; }; </tr> </table> </body></html>

34 26 PHP&MySQL (ex1-25.php) FOREACH PHP foreach <? $a=array(3579); foreach($a as $k => $v) { echo "$k = $v <br>"; }; (ex1-26.php) $a 0 3 $k $v <? $a=array(3579); foreach($a as $v) { echo "= $v <br>"; };

35 1 PHP 27 (ex1-27.php) foreach for foreach SWITCH IF CGI IF/ELSE/ELSEIF <html><body> <?php $Career=" "; echo "<p> $Career"; if ($Career==" ") echo "<p> "; elseif ($Career==" ") echo "<p> "; elseif ($Career==" ") echo "<p> "; elseif ($Career==" ") echo "<p> "; else echo "<p>? "; </body></html> (ex1-28.php)

36 28 PHP&MySQL IF/ELSE/ELSEIF SWITCH switch( ) { case 1 statement1; break; case 2 statement2; break;... case N statementn; break; default statementm; break; }; SWITCH case case break SWITCH case SWITCH default case break case break SWITCH <html><body> <?php $Career=" "; echo "<p> $Career"; switch($career) { case "

37 1 PHP 29 echo "<p> "; break; case " echo "<p> "; break; case " echo "<p> "; break; case " echo "<p> "; break; default echo "<p>? "; }; </body></html> (ex1-29.php) break <html><body> <?php $Career=" "; echo "<p> $Career"; switch($career) { case " echo "<p> "; case "

38 30 PHP&MySQL echo "<p> "; case " echo "<p> "; case " echo "<p> "; default echo "<p>? "; }; </body></html> (ex1-30.php) REQUIRE REQUIRE C #include REQUIRE("filename") PHP REQUIRE filename PHP <html><body> <?php echo "<p> AlphaCall..."; require('ex1-32.php'); echo "<p>..."; </body></html> (ex1-31.php) <?php echo"<p> " (ex1-32.php)

39 1 PHP 31 ex1-32.php INCLUDE INCLUDE REQUIRE INCLUDE INCLUDE filename INCLUDE("filename") INCLUDE PHP <html><body> <?php echo "<p> AlphaCall..."; for($t=1;$t<=4;$t=$t+1) { include("ex1-33.".$t.".php"); }; echo "<p> $#@!$%$@#%&..."; </body></html> (ex1-33.php) <?php echo "<p> ";

40 32 PHP&MySQL (ex php) <?php echo "<p> 1.!"; (ex php) <?php echo "<p> 2.!"; (ex php) <?php echo "<p> 2.!"; (ex php) FUNCTION PHP C function test($x$y) {... return $x; } $x $y return $x function return return return

41 1 PHP 33 Name[100]; Phone[100]; function GetPhoneByName($x) { for($t=1;$t<=100;$t++) { if (Name[$t]==$x) return Phone[$x]; }; } function GetNameByPhone($x) { for($t=1;$t<=100;$t++) { if (Phone[$t]==$x) return Name[$x]; }; } PHP (call by value) (call by address) <html><body> <?php function test($x) { $x=$x+1; echo "<p> $x "; }; $y=37; test($y); echo "<p> $y ";

42 34 PHP&MySQL </body></html> (ex1-34.php) $x test 1 $x $y PHP ( ) & $x & <html><body> <?php function test(&$x) { $x=$x+1; echo "<p> $x "; }; $y=37; test($y); echo "<p> $y "; </body></html> (ex1-35.php) PHP & PHP <html><body> <?php function test($x) { $x=$x+1;

43 1 PHP 35 echo "<p> $x "; }; $y=37; test(&$y); echo "<p> $y "; </body></html> (ex1-36.php)? <html><body> <?php function test($a) { $A[0]=$A[0]+2; $A[1]=$A[1]+2; $A[2]=$A[2]+2; echo "<p> ".$A[0]."".$A[1]."".$A[2]; return $A; }; $B[0]=1; $B[1]=5; $B[2]=9; $C=test($B); echo "<p> ".$B[0]."".$B[1]."".$B[2]; echo "<p> ".$C[0]."".$C[1]."".$C[2]; </body></html> (ex1-37.php)

44 36 PHP&MySQL? PHP C++ C++ <html><body> <?php $D=array( ); function average($a$begin=0$end=9) { for($t=$begin;$t<=$end;$t++) $sum=$sum+$a[$t]; $aver=$sum/($end-$begin+1); return $aver; }; $aver=average($d25); // average of 3456 echo "<p> $aver"; $aver=average($d); // average of all echo "<p> $aver"; </body></html> (ex1-38.php)

45 1 PHP 37 INCLUDE_ONCE/ REQUIRE_ONCE include require include require PHP include_once require_once include requireinclude_once / require_once include / require average() myfunc.inc average() require_once(myfunc.inc) include_once (myfunc.inc) average() PHP PHP PHP CGI ( HTML FORM) HTTP Cookie Graphic Submit 4 4

46 38 PHP&MySQL CGI FORM/CGI C Perl CGI GET PUT GET (Environment Variable) PUT input buffer indexnewsdata.pl?newsfile96=%b8%d4%b2%d3%a4%ba%aee&kkg=43 PHP PHP PHP PHP FORM Name / / FORM HTML <html><body> <form method=get action="ex1-40.php"> <table> <tr> <td> </td><td><input type=text name=name value="" size=42 maxlength=42></td> </tr> <tr> <td> </td><td><input type=text name= value="" size=42 maxlength=42></td> </tr> <tr> <th> </th><td><textarea name=message rows="5"cols="40"> </textarea>

47 1 PHP 39 </td> </tr> <tr> <td align=right colspan=2><input type=submit name=button value=" "></td> </tr> </table> </form> </body></html> (ex1-39.php) ex1-40.php <html><body> <?php if ($BUTTON==" ") { echo "<p> $NAME"; echo "<p> $ "; echo "<p> $MESSAGE"; }; </body></html>

48 40 PHP&MySQL PHP CGI PHP PHP CGI ( ex1-40.php) PHP ex1-39.php 3 NAME MESSAGE ex1-40.php 3 $NAME$ $MESSAGE PHP CGI CGI GET method PUT method CGI PHP PHP CGI PHP <html><body> <form method=get action="ex1-42.php"> <table> <tr> <td> </td><td><input type=text name=personal[name] value="" size=42 maxlength=42></td> </tr> <tr> <td> </td><td><input type=text name=personal[ ] value="" size=42 maxlength=42></td> </tr> <tr>

49 <th> </th><td><textarea name=personal[message] rows="5" cols="40"></textarea></td> </tr> <tr> <td align=right colspan=2><input type=submit name=button value=" "></td> </tr> </table> </form> </body></html> (ex1-41.php) ex1-42.php 1 PHP 41 <html><body> <?php if ($BUTTON==" ") { echo "<p> $PERSONAL[NAME]"; echo "<p> $PERSONAL[ ]"; echo "<p> $PERSONAL[MESSAGE]"; }; </body></html> 123 NAME MESSAGEPHP Group CGI Group CGI CGI <html><body> <form method=post action="ex1-44.php"> <select> <table>

50 42 PHP&MySQL <tr> <td> </td><td>...</td><td><input type=text name=ordernumbofbook[1] value="0"></td> </tr> <tr> <td> </td><td>...</td><td><input type=text name=ordernumbofbook[2] value="0"></td> </tr> <tr> <td> </td><td>...</td><td><input type=text name=ordernumbofbook[3] value="0"></td> </tr>... <tr> <td> </td><td>...</td><td><input type=text name=ordernumbofbook[10000] value="0"></td> </tr> <tr> <td align=right colspan=2><input type=submit name=button value=" "></td> </tr> </table> </form> </body></html> (ex1-43.php) submit ex1-44.php OrderNumbOfBook[..] <html><body> <?php if ($BUTTON==" ") { for($t=1;$t<=10000;$t++)

51 1 PHP 43 echo "<p>".$ordernumbofbook[$t]; }; </body></html> (ex1-44.php) PHP Group CGI <select>... </select> [] ex1-45.php SINGER[] ex1-46.php SINGER[] <html><body> <form method=post action="ex1-46.php"> <p> : <select multiple size=5 name=singer[]> <option value=" "> <option value=" "> <option value=" "> <option value=" "> <option value="yuki">yuki </select> <p> <input type=submit name=button value=" "> </form> </body></html> (ex1-45.php) <html><body> <?php if ($BUTTON==" ") { for($t=0;$t<=5;$t++) echo "<p>".$singer[$t]; };

52 44 PHP&MySQL </body></html> (ex1-46.php) HTTP Cookie cookie cookie communicator IE ( ) HTTP(Hyper Text Transport Protocol)HTTP Web ( ) ( ) Netscape Cookie Web Cookie HTML (header) Set-CookieNAME=VALUE; expires=date; path=path; domain=domain_name; secure Cookie CGI Cookie PHP header(...) CGI URL

53 CookieNAME1=OPAQUE_STRING1; NAME2=OPAQUE_STRING PHP 45 NAMExx OPAQUE_STRINGxx Set-Cookie Cookie HTTP_COOKIE ex1-47.php cookie cookie money URL path / / URL ex1-48.php HTTP_COOKIE <?php header("set-cookie: money=12345; path=/; expires= Wednesday, 13-JAN-99 13:00:00 GMT"); <html><body> </body></html> (ex1-47.php) <html><body> <?php echo $HTTP_COOKIE; </body></html> (ex1-48.php) PHP Cookie SetCookie SetCookie SetCookie(string namestring valueint expirestring pathstring domain int secure); Cookie expire Linux/Unix time() mktime() 4

54 46 PHP&MySQL URL 5 domain Cookie HTTPS (HTTP over SSL) SSL Cookie Netscape Cookie http// std/cookie_ spec.html PHP Cookie <?php SetCookie("TestCookie",++$TestCookie,time()+200,"/"); <html><body> <?php echo $TestCookie; </body></html> (ex1-49.php) ex1-49.php Graphic Submit FORM CGI Sumbit WWW Server Submit HTML Submit PHP CGI Submit WWW Server PHP Submit WWW Server PHP ( )

55 <html><body> <form method=get action="ex1-50.php"> <p>... <p> <input type=image src=detailit2.gif border=0 name=button1> <input type=image src=detailit2.gif border=0 name=button2> </form> <?php echo "<p> Button 1 "; echo "($button1_x, $button1_y)"; echo "<p> Button 2 "; echo "($button2_x, $button2_y)"; </body></html> (ex1-50.php) 1 PHP 47 Submit Submit ex1-50.php button1_x button1_y Submit Submit button2 Submit button2 button1 button1_x button1_y ( )

56 48 PHP&MySQL PHP PHP ($HOME)PHP $HOME PHP http daemon PHP daemon PHP HTTP cookie CGI GET/PUT PHP getenv(string varname) varname PHP Microsoft ASP PHP 3 PHP 3 PHP C++ Java PHP PHP C++ Java

57 1 PHP 49 ClassType Object; $Object = new ClassType; $Object->member $this->member $this ex1-51.php People $name $age $this-> $this->name $this->age $name $age <html><body> <? class People { var $name=""; var $age=0; function set_name($x) { $this->name=$x; } function set_age($x) { $this->age=$x; } function show_info($x=8) { echo "<p>".$this->name; echo "<p>".$this->age; echo "<p>".$x; }

58 50 PHP&MySQL }; $p=new People; $p->set_name("rollaned"); $p->set_age(30); echo $p->age; $p->show_info(); </body></html> (ex1-51.php) PHP show_info($x=8) {... } show_info $x 8 PHP ( ) ex1-52.php PHP Student People <html><body> <?php class People { var $name=""; var $age=0; function set_name($x) { $this->name=$x; } function set_age($x) { $this->age=$x; } function show_info($x=8) { echo "<p>".$this->name; echo "<p>".$this-> age; echo "<p>".$x; } }; class Student extends People { var $school; var $department; function set_school($x) { $this->school=$x; } function set_department($x) { $this->department =$x; } function show_info() {

59 echo "<p>".$this->name; echo "<p>".$this->age; echo "<p>".$this->school; echo "<p>".$this->department; } }; $p=new People; $p->set_name("rollaned");$p->set_age(30); echo $p->age;$p->show_info(); echo "<hr>"; $q=new Student; $q->set_school("nthu");$q->set_department("computer Science"); $q->set_name("jessie");$q->set_age(25); $q->show_info(); </body></html> (ex1-52.php) 1 PHP 51 PHP 1.4 HTTP PHP HTTP Cookie GIF WWW WWW HTTP Authentication ID PHP HTTP Authentication Header() ID ID $PHP_AUTH_USER $PHP_AUTH_PW $PHP_AUTH_USER $PHP_AUTH_PW

60 52 PHP&MySQL <? if($php_auth_user!="rollaned" $PHP_AUTH_PW!=" ") { Header("WWW-Authenticate: Basic realm=\"my Realm\""); Header("HTTP/ Unauthorized"); echo "If you hits Cancel button, then you will see this..."; exit(); }; <html><body> <? echo "<p> I got your ID=$PHP_AUTH_USER"; echo "<p> and password=$php_auth_pw"; </body></html> (ex1-53.php) ex1-53.php ID ex1-53.php PHP ID $PHP_AUTH_USER $PHP_AUTH_PW ID if(... ) ID Rollaned if(...) {...} ID

61 1 PHP 53 Authentication Error if(...) {...} Header(...) ( echoprint HTML ) ID ( ) HTTP authentication ( ) HTTP authentication GIF GIF JPEG HTML GD library GIF CGI CC++ Perl CGI GD library PHP PHP GD library PHP GD library PHP GD library 37

62 54 PHP&MySQL <? /* 1 */ Header("Content-type: image/gif"); /* 2 */ $string=implode($argv," "); /* 3 */ $im=imagecreate(100,50); /* 4 */ $orange=imagecolorallocate($im,220,210,60); /* 5 */ $black=imagecolorallocate($im,0,0,0); /* 6 */ ImageRectangle($im,0,0,90,40,$orange); /* 7 */ ImageLine($im,0,0,90,40,$black); /* 8 */ ImageString($im,4,3,30,$string,$black); /* 9 */ ImageGif($im); /* 10 */ ImageDestroy($im); (ex1-54.php) <html> <body> <img src="ex1-54.php?hellokitty"> </body> </html> (ex1-55.php) GD library ex1-54.php (1) header (2) $string (3) $im 100x50 (4) $im (RGB ) $orange (5) $im (RGB 000 ) $black (6) $im 90x40 $orange (7) $im (00) (9040)

63 1 PHP 55 $black (8) $im 4 (330) (9) $im GIF (10) $im (Upload) HTTP PHP HTML FORM FORM PHP <html><body> <? if ($sendbutton==" ") { echo "<p>".$myuserfile; echo "<p>".$myuserfile_name; echo "<p>".$myuserfile_size; echo "<p>".$myuserfile_type; echo "<p>cp $myuserfile /tmp/$myuserfile_name"; system("cp $myuserfile /tmp/$myuserfile_name"); }; <form enctype="multipart/form-data" action="ex1-56.php" method=post> <input type="hidden" name="max_file_size" value=" "> : <br> <input name="myuserfile" type="file"> <input type="submit" name="sendbutton" value=" "> </form> </body></html> ex1-56.php

64 56 PHP&MySQL Browse FORM myuserfile sendbutton PHP ( ) $myuserfile_name$myuserfile_size $myuserfile_type abc $abc_name$abc_size $abc_type PHP /tmp $myuserfile_name system( )

65 1 PHP 57 php.ini upload_tmp_dir upload_max_filesize 1.5 PHP PHP PHP

66 2 MySQL MySQL MySQL MySQL SQL MySQL PHP

67 60 PHP&MySQL 2.1

68 2 MySQL 61 Name Age Sex Married Smith 20 Male Yes Clark 28 Male Yes John 18 Female No Mary 29 Female No ServiceDepart 4 SmithClarkJohn Mary (row ) 1 3 NameAge Sex 3 / / / /

69 62 PHP&MySQL SQL(Simple Query Language) 25 ( ServiceDepart) select * from ServiceDepart where Married=yes and Age>25 and Sex=Male (Clark, 28, Male, Yes) SQL 2.2 MySQL Oracle IBM DB2Sybase Infomix MySQLMySQL ( MySQL 40 MySQL MySQL MySQL MySQL MySQL GPL ( a) MySQL Open Source

70 2 MySQL 63 MySQL MySQL MySQL 3 MySQL Database Server( ) MySQL Database Client( ) MySQL Database MySQL ( / / ) MySQL Database Client MySQL MySQL MySQL C MySQL C C MySQL MySQL 2.3 MySQL MySQL MySQL (1) mysql tgztar xvfz mysql tgz (2) GB2312 configure with-charset=gb2312 (3) make (4) make install (5)./script/mysql_install_db force (6) mysql.server start 6 MySQL MySQL

71 64 PHP&MySQL MySQL mysqld safe_mysqld ( 3 ) mysqld safe_mysqld MySQL mysql.server mysql.server start MySQL server mysql.server stop MySQL server MySQL SQL mysql MySQL Database client SQL Enter Enter SQL MySQL mysql mysql u ID root mysql mysql u root 2.4 SQL SQL (Simple Query Language) SQL SQL SQL ( simple query language )

72 2 MySQL

73 66 PHP&MySQL create database create database PeopleDB; use use PeopleDB;

74 2 MySQL 67 drop database PeopleDB drop database PeopleDB drop database create table ( 1, 2,...) (byte) Tinyint(M) [unsigned] [zerofill] unsigned Smallint(M) [unsigned] [zerofill] unsigned Mediumint(M) [unsigned] [zerofill] unsigned Int(M) [unsigned] [zerofill] BIgint(M) [unsigned] [zerofill] unsigned unsigned Float(Precision) Precision E+38F E E E + 38F

75 68 PHP&MySQL (byte) Float[(M,D)] 4 Double Precision[(M,D)] E E E E Real[(M,D)] Double 8 Decimal[(M,D)] Double M+D Numeric[(M,D)] Decimal M+D Timestamp[(M)] 4 DATE TIME DATETIME ( 'YYYY-MM-DD' 'YY-MM-DD' 'YYMMDD') ( 'HHMMSS' 'HHMMSS' 'HHMM' 'HH' ) DATE TIME 'YYYY-MM-DD HHMMSS' Char(M) [binary] binary M case sensitive Varchar(M) [binary] binary L+1 case sensitive Tinytext Tinyblob Text Blob MediumText MediumBolb LongText LongBlob 255 L L L L+4

76 2 MySQL 69 (byte) Enum( value1, value2,..) Set( value1, value2,..) value1value2, 1 2 value1value2, 1 8 MLD M L D ( ) create table SalaryDB (name char(8), age int(3), address text, salary int(8)) drop table SalaryDB drop table SalaryDB 1 insert into values( 1, 2,...) SalaryDB 3 insert into SalaryDB values(, 28,, 20000) insert into SalaryDB values(, 26,, 25000) insert into SalaryDB values(, 20,, 24000) SalaryDB

77 70 PHP&MySQL name age address salary update update set 1=, 2= where SalaryDB update SalaryDB set age=age+1 SalaryDB name age address salary update SalaryDB set salary=23000 where name= update SalaryDB set salary=26000 where name= SalaryDB

78 2 MySQL 71 name age address salary delete from where delete from SalaryDB where name= SalaryDB name age address salary SalaryDB name age address salary SQL select,, from where

79 72 PHP&MySQL 1 27 select name, age, salary from SalaryDB where age<27 name age salary select name, address from SalaryDB where age<25 and salary>=23000 name address select * from SalaryDB where age<25 or salary>23000 name age address salary select max(salary) from SalaryDB where age>25 max(salary) 25000

80 2 MySQL select count(*) from SalaryDB where salary>20000 count(*) 2 6 ( ) select * from SalaryDB order by salary name age address salary ( ) select * from SalaryDB order by salary desc name age address salary SQL SQL

81 74 PHP&MySQL SQL SQL SQL name( ) age( )depart( ) salary( ) name age depart salary A 26 MIS B 20 MARKET C 29 MIS D 30 MIS E 34 ART F 27 MARKET select distinct depart from TeamDB depart MIS MARKET ART 2 3 select name,salary from TeamDB order by salary desc limit 0,3

82 2 MySQL 75 name salary E D F select * from TeamDB group by depart name age depart salary E 34 ART A 26 MIS B 20 MARKET select * from TeamDB where salary>25000 group by depart name age depart salary E 34 ART F 27 MARKET C 29 MIS

83 76 PHP&MySQL select depart,count(*) from TeamDB group by depart depart count(*) ART 1 MARKET 2 MIS 3 MySQL SQL select MySQL SQL MySQL / alter table add SalaryDB logintime ( ) alter table SalaryDB add logintime time SalaryDB name age address salary logintime NULL NULL NULL logintime NULL logintime

84 2 MySQL 77 update upate SalaryDB set logintime=curtime () SalaryDB name age address salary logintime curtime() alter table drop logintime alter table SalaryDB drop logintime SalaryDB name age address salary MySQL alter table change change SalaryDB 8 name 20 ID alter table SalaryDB change name ID char(20)

85 78 PHP&MySQL SalaryDB ID age address salary MySQL MySQL alter table rename SalaryDB Salary1999DB alter table SalaryDB rename Salary1999DB 2.5 MySQL PHP PHP SQL PHP PHP MySQL PHP MySQL (1) MySQL (mysql_connect) (2) (mysql_select_db) (3) SQL (mysql_query) (4) (mysql_num_rowsmysql_fetch_row) (5) (mysql_close) PHP

86 2 MySQL PeopleDB SalaryDB 27 SQL select name, age, salary from SalaryDB where age<27 PHP <? 1. $DBServer=mysql_pconnect("localhost","root",""); 2. mysql_select_db( PeopleDB,$DBServer); 3. $DBT=mysql_query("select name,age,salary from SalaryDB where age<27"); 4. for ($t=1;$t<=mysql_num_rows($dbt);$t++) { 5. $DBTrow=mysql_fetch_row($DBT); 6. $name=$dbtrow[0]; 7. $age=$dbtrow[1]; 8. $salary=$dbtrow[2]; 9. echo "[name,age,salary]=[$name,$age,$salary]"; 10. echo "<br>"; }; 1mysql_pconnect(host,ID,Passwd) MySQL host ID Passwd MySQL host localhostmysql ID root $DBServer

87 80 PHP&MySQL 2mysql_select_db($DB,$DBServer) $DBServer PeopleDB 3mysql_query($query) SQL $query select name,age,salary from SalaryDB where age<27 4mysql_num_rows($DBT) 5mysql_fetch_row($DBT) (name, age, salary) $DBTrow 6,7,8 $DBTrow mysql_query($query) name age salary $name=$dbtrow[0], $name=$dbtrow[0], $name=$dbtrow[0] $name, $age $salary PHP MySQL PHP MySQL PHP 4 35 MySQL mysql_create_db int mysql_create_db(string database_name, int link_identifier ) mysql_create_db (db) (identifier)

88 2 MySQL 81 mysql_drop_db int mysql_drop_db(string database_name, int link_identifier ) mysql_create_db (db) mysql_connect (identifier) int mysql_connect ([string hostname [port] [/path/to/socket] [, string username [, string password]]]) mysql_connect MySQL hostname IP mysql_pconnect port 3306 username ID password (identifier) int mysql_pconnect ([string hostname [ port] [ /path/to/socket] [, string username [, string password]]]) mysql_pconnect mysql_connect mysql_close mysql_connect mysql_pconnect mysql_pconnect mysql_pconnect int mysql_close(int link_identifier ) mysql_close (identifier) mysql_pconnect mysql_close

89 82 PHP&MySQL mysql_select_db i nt mysql_select_db(string database_name, int link_identifier ) mysql_query link_identifier int mysql_query(string query, int link_identifier ) mysql_query SQL MySQL mysql_fetch_row link_identifier array mysql_fetch_row(int result) mysql_fetch_row mysql_query mysql_fetch_array array mysql_fetch_array(int result) mysql_fetch_array mysql_query_row mysql_query_row mysql_fetch_array Name Age mysql_fetch_array $X $X[ Name ] $X[ Age ] mysql_fetch_row $X[0] $X[1]

90 2 MySQL 83 mysql_fetch_object object mysql_fetch_object(int result) mysql_fetch_object mysql_query_array mysql_field_seek mysql_query_array mysql_fetch_object $X->Name $X->Age int mysql_field_seek(int result, int field_offset) mysql_num_rows mysql_field_seek ( ) mysql_fetch_row mysql_fetch_array mysql_fetch_object int mysql_num_rows(string result) mysql_db_query mysql_num_rows(string result) mysql_query int mysql_db_query(string database, string query, int link_identifier) mysql_query mysql_select_db mysql_list_dbs mysql_db_query mysql_select_db mysql_query int mysql_list_dbs(void)

91 84 PHP&MySQL mysql_dbname mysql_dbname string (string result, int i) result mysql_list_dbs mysql_list_dbs mysql_dbname <? mysql_connect ("localhost3306"); $x=mysql_list_dbs(); $n=mysql_num_rows($x); for ($i=0;$i<$n;$i++) echo mysql_dbname($x,$i); mysql_list_tables int mysql_list_tables(string database) mysql_tablename mysql_tablename string mysql_tablename(string result, int i) result mysql_list_tables mysql_list_tables mysql_tablename <? mysql_connect ("localhost3306");

92 2 MySQL 85 $x=mysql_list_tables( ABC ); $n=mysql_num_rows($x); for ($i=0;$i<$n;$i++) echo mysql_tablename($x,$i); ABC

93 3 FabulousWeb FabulousWeb FabulousWeb FabulousWeb CLE

94 88 PHP&MySQL LinuxFab Open Source FabulousWeb 0.96 FabulousWeb GPL FabulousWeb GPL LinuxFab 1998 LinuxFab Linux / BSD / Unix / OpenSource FabulousWeb LinuxApachePHP MySQL 5 FabulousWeb FabulousWeb FabulousWeb FabulousWeb FabulousWeb FabulousWeb 3.1 FabulousWeb FabulousWeb FabulousWeb FabulousWeb 0.96

95 3 FabulousWeb PHP MySQL 3.22.x 3. PHP (1) php tar.gz (2) cd php (3) configure (4) make php php /usr/local/bin PHP 4. /home/rollaned/fw ( Apache httpd.conf DocumentRoot ) 5. FabulousWeb-0.95.tgz 6. _Initialization.1.mysql /home/rollaned/fw> mysql -u root < _Initialization.1.mysql 7. _Initialization.2.php /home/rollaned/fw> _Initialization.2.php 8. crontab */1 * * * * /home/rollaned/fw/sbin/_prefetch.home.php > /dev/null2>&1 0 6 * * * /home/rollaned/fw/sbin/_login.php > /dev/null 2>&1 1 */1

96 90 PHP&MySQL 2 6:00 9. indexvars.php $SITEHOSTIP=" "; $SITENAME="FabulousWeb"; $LFDN="sp.cis.nctu.edu.tw"; $LOGOFILE="PCC2.gif"; $LOGOALT="Fabulous Web Site"; $SITEMEMBERID="FabulousWebMemberID"; $SITEMEMBERUNIQIDHEADER="FabulousWeb"; $DB_TW="XF"; $SITHOSTIP $SITENAME $LFDN $LOGOFILE $LOGOALT cookie cookie $SITEMEMBERID $SITEMEMBERUNIQIDHEADER $DB_TW XF FabulousWeb

97 3 FabulousWeb 91 4 FabulousWeb ( ) ( ) FabulousWeb ID guest

98 PHP&MySQL 92 ( ) TODO icon ( 0 )

99 3 FabulousWeb 93

100 94 PHP&MySQL

101 3 FabulousWeb 95 FabulousWeb 3 ( ) 3 FabulousWeb PO BBS

102 96 PHP&MySQL FabulousWeb ( ) 3 ( ) 3 ( )

103 3 FabulousWeb 97 ( Rollaned ) 2 ID 1 ID 3.2 FabulousWeb FabulousWeb

104 98 PHP&MySQL FabulousWeb PHP indexvars.php $SITEHOSTIP=" "; $SITENAME="FabulousWeb"; $LFDN="sp.cis.nctu.edu.tw"; $LOGOFILE="FW1b.gif"; $LOGOALT="Fabulous Web Site"; $SITEMEMBERID="FabulousWebMemberID"; $SITEMEMBERUNIQIDHEADER="FabulousWeb"; $SITEHOSTIP $SITENAME ( )$LFDN $LOGOFILE Logo ( /graphics/pic )$LOGOALT Logo FabulousWeb cookie $SITEMEMBERID cookie FabulousWeb cookie $SITEMEMBERUNIQIDHEADER cookie FabulousWeb FabulousWeb cookie $SITEMEMBERUNIQIDHEADER $SITEFUNCNUMB=3; $DB_TW="XF"; $DB=$DB_TW; $SITESYSTEM_BACKUP_PATH="/tmp";

105 3 FabulousWeb 99 $SITEFUNCNUMB FabulousWeb FabulousWeb 3 $DB $SITESYSTEM_BACKUP_PATH FabulousWeb $SITESYSTEM_BACKUP_PATH $LFDN..tar.bz2 $LFDN..DB.tar.bz $PIC_PATH="pic"; $ICON_PATH="icon"; $EDITORICON_PATH="editor_icon"; $LOCAL_PICURL="/graphics/$PIC_PATH"; $LOCAL_ICONURL="/graphics/$ICON_PATH"; $LOCAL_EDITORICONURL="/graphics/$EDITORICON_PATH"; $PICURL="/graphics/$PIC_PATH"; $ICONURL="/graphics/$ICON_PATH"; $EDITORICONURL="/graphics/$EDITORICON_PATH"; $PICURL FabulousWeb $ICON_PATH FabulousWeb $EDITORICONURL

106 100 PHP&MySQL $SEARCH_DISP_LIMIT=10; $POWD_REPLYTITLE=52; $POWD_REPLYER=23; $POWD_REPLY =23; $POWD_REPLYURL=23; $POWD_REPLYPASSWD=23; $POWD_REPLYBODY=50; $POHT_REPLYBODY=15; $PO_NOTEFILE=$DOCUMENT_ROOT."/Document/PoNote.inc"; FabulousWeb $SEARCH_DISP_LIMIT FabulousWeb poster3.inc po $POWD_ REPLYTITLE $POWD_REPLYER $POWD_REPLY $POWD_REPLYURL $POWD_REPLYPASSWD $POWD_REPLYBODY $POHT_REPLYBODY $PO_NOTEFILE

107 3 FabulousWeb $EASYNEWS_DISP_LIMIT=8; $EASYTOPNEWS_DISP_LIMIT=3; $NEWSFONTSIZE=2; FabulousWeb indexeasy.php $EASYNEWS_DISP_LIMIT $EASYTOPNEWS_DISP_LIMIT

108 102 PHP&MySQL $NEWSFONTSIZE ( ) $TOPNEWS_WEEK_HITRATIO=10; $TOPNEWS_WEEK_DISP_LIMIT=7; $TOPNEWS_MONTH_HITRATIO=10; $TOPNEWS_MONTH_DISP_LIMIT=10; FabulousWeb Hot $TOPNEWS_WEEK_HITRATIO hot $TOPNEWS_WEEK_DISP_LIMIT $TOPNEWS_MONTH_DISP_LIMIT

109 3 FabulousWeb $NEWS_DISP_LIMIT=12; $LINK_DETAIL_DISP_LIMIT=10; $TOPLINK_ALL_DISP_LIMIT=20; FabulousWeb indexhome.1.php indexhome.2.php indexhome.3.php$news_disp_limit $LINK_DETAIL_DISP_LIMIT $TOPLINK_DISP_LIMIT IndexEasy.php IndexHome.1.php

110 104 PHP&MySQL IndexHome.2.php IndexHome.3.php $MESSAGEDISPLIMIT=24; $MESSAGENEWICONDAYS=7; $MEMBER_GUEST_UNIQID=$SITEMEMBERUNIQIDHEADER." "; $MEMBER_GUEST_ID="guest";

111 3 FabulousWeb 105 FabulousWeb FabulousWeb $MESSAGEDISPLIMIT $MESSAGENEWICONDAYS FabulousWeb /sbin/_prefetch.home.php HTTP Request $PREFETCHBEGMARK $PREFETCHENDMARK $PREFETCHBEGMARK="-HAHABEGBEG-HAHABEGBEG-HAHABEGBEG-HAHABEGBEG-HAH ABEGBEG-"; $PREFETCHENDMARK="-HEHEENDEND-HEHEENDEND-HEHEENDEND-HEHEENDEND-HEH EENDEND-"; FabulousWeb $PREFETCHBEGMARK $PREFETCHEN -DMARK $PREFETCHBEGMARK $PREFETCHENDMARK URL Request crontab _prefetch.home.php */1 * * * * /home/rollaned/fw/sbin/_prefetch.home.php > /dev/null 2>&1

112 106 PHP&MySQL 3.3 FabulousWeb FabulousWeb FabulousWeb FabulousWeb indexeasy.php indexeasy.php indexbar2.php

113 3 FabulousWeb 107 indexbar1.easy.php indexbar3.easy.php indexmain1.easy.php indexbar1.easy.php indexbar2.php indexmain2.easy.php indexbar3.easy.php require() indexeasy.php require($document_root."/indexmain1.easy.php");... require($document_root."/indexmain2.easy.php"); indexnewsdata.php require($document_root."/indexmain1.news.php");... require($document_root."/indexmain2na.php"); indexmain1.news.php indexbar1.news.php indexmain2na.php indexmain2.xxx.php indexforumdata.php require($document_root."/indexmain1.forum.php");... require($document_root."/indexmain2na.php"); indexmain1.forum.php indexbar1.forum.php

114 108 PHP&MySQL FabulousWeb SiteDB LoginDB SiteDB LOGINCOUNTER POSTCOUNTER PAGEVIEW RUNDAYS PageView indexvars.phpposter3.inc sbin/_login.php LoginDB ID YEAR MONTH DAY WEEK LTOTAL LTODAY PTOTAL

115 3 FabulousWeb 109 PTODAY PAGEVIEW PAGEVIEWTOTAL PageView PageView sbin/_login.php LoginDB crontab FabulousWeb 6: FabulousWeb po_xxx SUB1 SUB2 ID TID PID NAME URL MEMBER ERASEPW TITLE 1 2 URL (1 0 )

116 110 PHP&MySQL DATE CONTENT IP COPYER COPYLID IP po_xxx XXX po_todo po_news SUB1 SUB2 po_news SUB1 po_news SUB1 IDTID PID FabulousWeb TID PID ID TID PID ID

117 3 FabulousWeb 111 POSTER $DBNAME $Sub1 $Sub2 $ExecFileName $ThreadOrder $PostOrder $enablecheckduppo $DiscussionBarTitle $PrivUser $MemberID $IP $ReadThreadLimit $PostCounterUpdate (po_xxx) 1 2 POSTER URL ( ) ( ) ID ( ) IP 1 0 POSTER (method) SetDBEX($DB,EX,$y=0,$z=0) ($DB)$EX POSTER URL$y $z Sub1 Sub2 SetReadOnly() SetNoSearchBar()

118 112 PHP&MySQL SetPrivUser($s) rollaned,lamport,jessie, SetPasteUser($s) rollaned,lamport,jessie, checkpastable($mid) $MID getlid() SetIP() IP SetDupPOchecking() SetMemberID() ID GetPostItem($t,$p) $t $p GetPostItemID($t,$p) $t $p ID DigPOTBINFO() GetPOTBINFO() getpostsize($qsub1=-1,$qsub2=-1)

119 3 FabulousWeb 113 Sub1=$QSUB1 Sub2=$QSUB2 updatepostcounter($tag) ( POTBINFO ) ChineseWeek($y) htmlformat($s) HTML <br> HTML SetOrder($t,$p) ($t $p ) setnolist() setreadthreadlimit($n) setattach() $ExecFileName? setattach() URL ( & ) inprocess() 1 0 setprompt($s) HandleMEMOPOST()

120 PHP&MySQL 114 ShowDiscussionBar() showheader( ) URL handledeletepasswd() handledeletepost() save2podb($id,$tid,$pid,$title,$name,$member) PODB PODB setpastepoint() ( ) settracedb($tracethreadid) ( ) handlesendout() genform() attachnote($notefile) mainbody1() mainbody2()

121 3 FabulousWeb 115 main() mainbody1() mainbody2() POSTER 1. require($document_root."/poster3.inc"); 2. $ExecFileName="indexNewsData.php?NEWSID=$NEWSID"; 3. $poster1=new POSTER; 4. $poster1->setdbex("po_news",$execfilename,$newsid,0); 5. $poster1->setnolist(); 6. $poster1->setorder(1,0); 7. $poster1->setattach(); 8. $poster1->setreadthreadlimit(100); 9. $poster1->setnosearchbar(); 10. $poster1->setduppochecking(); 11. if (!$poster1->inprocess()) 12 shownewscontent($newsid); 13. else 14. shownewstitle($newsid); 15. $poster1->main(); 16. if ($poster1->postcounterupdate!=0) { 17. $PS=$poster1->PostSize; 18. $query="update NewsDB set POSTNUMB=$PS where ID=".$NEWSID; 19. mysql_query($query); 20. }; 1 POSTER 2 POSTER URL

122 116 PHP&MySQL 3 POSTER poster1 4 po_news Sub1 Sub2 0 URL ( $ExecFileName) 5 6 ( ) 7 URL Attache 8 () / 15 POSTER / ( ) POSTER FabulousWeb 3.3.4

123 3 FabulousWeb 117 NewsTypeDBNewsDB NewsStruct 3 NewsTypeDB ID TITLE STATUS ICONFILENAME icon NewsDB ID DATE TYPE TITLE POSTNUMB REPORTERID SPYNAME SPY OFFLINE EVENTDATE RID URL URLNAME REFCOUNTER LID (1 0 ) 1,2,3,4

124 118 PHP&MySQL HINT BODY SEARCHBODY REPORTMODE ( HTML ) (0 1 ) NewsStruct IDCOUNTER indexnewsdata.php indexnewsdata.php (NEWSID) /indexnewsdata.php?newsid=xx 3 showrbar($title,$fontsize=3,$width="100%",$bgcolor="006666", $fgcolor="white",$align="left") shownewstitle($newsid) shownewscontent($newsid) showrbar(..) shownewstitle($newsid) showrbar( ) $NEWSID shownewscontent($newsid)

125 3 FabulousWeb ( BBS ) 4 ForumTypeDB ID TITLE GROUPORDER STATUS ID ForumDB TITLE DATE PROPOSERID CONTENT POSTNUMB STATUS ID BM BB (0 1 2 ) Rolaned,Jessie,AlanCox

126 120 PHP&MySQL URL TYPEID INDPO ( /forum/url) ID po FabulousWeb po_forum po po INDPO INDPO 0 po po_forumindpo 1 po po_forum_$fid$fid ForumBMDB FID FBM VBM STATUS ForumMemoDB FID MID TITLE

127 3 FabulousWeb 121 READONLY POSTNUMB STATUS ForumMemoDB READONLY ( ) indexforumdata.php indexforumdata.php (FID) /indexforumdata.php?fid=xx xx yy yy showforumtitlebar($title,$subtitle,$bm,$url="") $TITLE $SUBTITLE $BM $URL SUB1 SUB2 ( ) po_forum ( po_forum_$fid)sub1 SUB2 3 po_forum SUB1 3SUB2 0 SUB2=1 1 SUB2=2 2

128 122 PHP&MySQL SUB1 SUB N N 1 $EDITMODE=0; if ($MEMBER_LOGIN_ID!="") { $BMA=explode(",",$BM); for ($s=0;$s<sizeof($bma);$s++) if ($MEMBER_LOGIN_ID==$BMA[$s] && $BMA[$s]!="") { $EDITMODE=1; break; } }; $EDITMODE 1 0 $poster1->setprivuser($bm); /indexforumdata.php?fid=xx&mid=yy xx yy

129 3 FabulousWeb 123 $poster1->setreadonly(); $poster1->setpasteuser($bm); FabulousWeb FabulousWeb 4 LinkTypeDB ID CLASS1 CLASS2 TITLE1 TITLE2 LinkDB ID CLASS1 CLASS2 TITLE URL

130 124 PHP&MySQL NOTENUMB NOTEDATE REFCOUNTER LANGUAGE (1: 2: 3: 0: ) LinkNoteDB ID IID RECMAN REC RECPASSWD BODY IFMEMBER STATUS LID FabulousWeb SEARCHBODY HTML TAG HTML PHP (Regular Expression) (eregi_replace) $SEARCHBODY=eregi_replace("\<([^\<\>]*)\>","",$BODY);

131 3 FabulousWeb 125 $BODY HTML TAG $SEARCHBODY MySQL select * from NewsDB where locate(lcase( hello"), lcase (SEARCHBODY)>0 NewsDB SEARCHBODY hello 3.4 FabulousWeb PC Cluster FabulousWeb PC Cluster PC Cluster 5

132 126 PHP&MySQL SourceFab Open Source VA Linux SourceForge ( Open Source LinuxFab SourceFab SourceFab LinuxFab SourceFab LinuxFab FabulousWeb FabulousWeb LinuxFab SourceFab FabulousWeb FabulousWeb FabulousWeb 3.6 CLE CLE CLE ( FabulousWeb CLE

133 3 FabulousWeb FabulousWeb-0.9x.tgz _Initialization.1.mysql CLE ( XF) mysql u root < _Initialization.1.mysql indexvars.php $SITEHOSTIP=" "; $SITENAME="CLE Simulation"; $LFDN="cle.linuxfab.cx"; $LOGOFILE="CLE01.gif"; $LOGOALT="CLE Simulation Web Site"; $SITEMEMBERID="CLESimulationMemberID"; $SITEMEMBERUNIQIDHEADER="CLESimulation"; $SITEMEMBERLANGID="CLESimulationMemberLanguageID"; $SITECHATERID="CLESimulationChaterID"; $DOCUMENT_ROOT="/home/rollaned/CLE"; $DB_TW="CLE"; $SITENAME LFDN cle.linuxfab.cx $LOGOFILE Logo CLE 0.9p1 $DOCUMENT_ROOT $DB_TW CLE 2 _Initialization.2.mysql mysql u root < _Initialization.2.mysql

134 128 PHP&MySQL potato guest potato 2 guest /sbin/_prefetch.home.php crontab crontab e */1 * * * * /home/rollaned/cle/sbin/_prefetch.home.php > /dev/null 2>&1 */1 1 /Cache/ 5 ( ) indexeasy.php.cache indexhome.1.php.cache indexhome.2.php.cache indexhome.3.php.cache

135 3 FabulousWeb 129 indexlistpo.php.cache CLE CLE PHP script indexeasy.php indexbar1.easy.php 3 3 CLE ( 1) clefunction() function clefunction() { $ann=new anner2; $ann->setul(0); $ann->seturlline(0); $ann->setfontsize(2);

136 130 PHP&MySQL $ann->section_begin("cle "); $ann->item(' ','/cleintroduction.php','','<br>'); $ann->item(' ','/cl list.php','','<br>'); $ann->item(' ','/clegroup.php','','<br>'); $ann->item(' ','/clepackage.php','','<br>'); $ann->item(' ','/cleproject.php','','<br>'); $ann->section_end(); }; ( 2) cledocument() function cledocument() { $ann=new anner2; $ann->setul(0); $ann->seturlline(0); $ann->setfontsize(2); $ann->section_begin(" "); $ann->item(' ','/clegoodarticle.php','','<br>'); $ann->item(' ','/cletechdocument.php','','<br>'); $ann->item(' ','/clefaq.php','','<br>'); $ann->item(' ','/cleinstallation.php','','<br>'); $ann->section_end(); }; ( )( 3) cleresource() function cleresource() { $ann=new anner2;

137 3 FabulousWeb 131 $ann->setul(0); $ann->seturlline(0); $ann->setfontsize(2); $ann->section_begin(" "); $ann->item('i18n ','/clei18nprogramming.php','','<br>'); $ann->item(' ','/clechineseweb.php','','<br>'); $ann->item(' ','/cleenglishweb.php','','<br>'); $ann->section_end(); }; indexbar1.easy.php clefunction(); cledocument(); cleresource(); Search(); Event(); showannounce(); Navigator(); /sbin/_prefetch.home.php ( ) clefunction() clefocument() cleresource()

138 132 PHP&MySQL ( ) clechineseweb.php <? require($document_root."/indexmain1.easy.php"); require($document_root."/poster3.inc"); echo "<td width=90% valign=top>"; showrbar(" "); echo "<ul> <li>linuxfab<a href= <li>sourcefab<a href=

139 3 FabulousWeb 133 <li>linuxcenter <a href= <li>openscope <a href= </ul>"; echo "<p>"; $poster1=new POSTER; $poster1->setdbex("po_clechineseweb","clechineseweb.php"); $poster1->setprompt("? PO"); $poster1->setorder(1,0); $poster1->setreadthreadlimit(10); $poster1->main(); echo "</td>"; require($document_root."/indexmain2na.php"); showrbar() $poster1 setdbex() script po_clechineseweb clechineseweb.php po_clechineseweb FabulousWeb func.createpotb.php <? require($document_root."/indexvars.php"); require($document_root."/func.createpotb.php"); createpotb( po_clechineseweb ); clechineseweb.php

140 134 PHP&MySQL FabulousWeb

141 4 PHP PHP/Zend afterburner Cache Zend Cache MySQL Apache PHP 4 PHP/Apache/MySQL MS Windows

142 136 PHP&MySQL PHP/MySQL PHP Zend PHP PHP/MySQL/Apache PHP 4.0 PHP/MySQL Windows 4.1 Java CGI Java CGI PHP CGI

143 chat create database chat; (ID) (WORDS) (DATETIME) A B ID WORDS DATETIME A Hello B Hi A B A B ID 20 WORDS 200 DATETIME datetime ( ) use chat; create table mychatdb (ID char(20), WORDS char(200), DATETIME datetime);

144 138 PHP&MySQL HTML <meta http-equiv="refresh" content="10; url=chatdisplay.php"> 10 chatdisplay.php URL HTML Frame <html> <? echo " <frameset rows=\"73%,27%\" border=1> <frame src=\"chatdisplay.php\"> <frame src=\"chattyping.php\"> </frameset> "; </html> (chat.php) 73% chatdisplay.php 27% chattyping.php http//your_url/chat.php chatdisplay.php <html> <meta http-equiv="refresh" content="10; url=chatdisplay.php3"> <body bgcolor=ffffff text= link= vlink=003333>

145 4 139 <? $DB=mysql_connect("localhost","root",""); mysql_select_db("chat",$db); $DBT=mysql_query("select ID, WORDS from mychatdb order by DATETIME desc limit 0,13"); $DBTrownum=mysql_num_rows($DBT); echo "<table cellpadding=0 cellspacing=0 border=0 width=90%>"; for ($t=$dbtrownum-1;$t>=0;$t--) { mysql_data_seek($dbt,$t); $DBTrow=mysql_fetch_row($DBT); $ID=$DBTrow[0]; $WORDS=$DBTrow[1]; echo "<tr><td width=10%>$id</td> ; echo <td width=5% align=center></td> ; echo <td width=85%>$words</td></tr>"; }; echo "</table>"; mysql_close($db); </body> </html> chatdisplay.php $DBT=mysql_query("select ID, WORDS from mychatdb order by DATETIME desc limit 0,13"); chatdisplay.php 10 mychatdb 13 (limit 0,13) ( 13 ) ( 13 ) 13 ( IDWORDS) mysql_data_seek

146 140 PHP&MySQL mysql_data_seek($dbt,$t); mysql_fetch_row $DBTrow=mysql_fetch_row($DBT); 13 chattyping.php <html> <body> <? $DB=mysql_connect("localhost","root",""); mysql_select_db("chat",$db); if ($CHATID=="") $CHATID=" "; if (isset($words)) $DBT=mysql_query("insert into mychatdb values('$chatid','$words', now())"); echo "<table width=99% cellpadding=0 cellspacing=0 border=0>\n"; echo "<tr>"; echo "<td align=left><font size=2><b>"; echo "<form method=get action=chattyping.php3>\n"; echo "$CHATID <input type=text size=50 maxlength=160 name=words value=\"\">"; echo "<input type=hidden name=chatid value=\"".$chatid."\">"; echo " <input type=submit name=sendout value=\" \"> "; echo "</form>"; echo "</font></td>"; echo "<td align=left><font size=2><b>"; echo "<form method=get action=chattyping.php3>\n"; echo "<input type=text size=12 maxlength=160 name=chatid value=\"\">"; echo " <input type=submit name=renamebutton value=\" \"> ";

147 4 141 echo "</form>"; echo "</font></td>"; echo "</tr>"; echo "</table>"; mysql_close($db); </body> </html> chattyping.php ID chattyping.php $WORDS ( ) mychatdb if (isset($words)) $DBT=mysql_query("insert into mychatdb alues('$chatid','$words',now())"); form <input type=hidden name=chatid value="$chatid"> ID ( $CHATID) ID CHATID chattyping.php $CHATID ID HTML

148 142 PHP&MySQL CGI Java PHP MySQL HTML 4.2 PHP PHP Apache perl (1) php-4.0.xx.tar.gz (2) cd php-4.0.xx (3) configure (4) make php php /usr/local/bin php PHP Shell Script Hello world! #!/usr/local/bin/php -q <? echo "Hello, world!";

149 4 143 (ex4-1.php) PHP HTML HEADER PHP Shell Script "-q" HEADER -q /usr/local/bin/php /usr/local/bin/ PHP echo "Hello, world!" "" chmod (chmod +x ) ls l PHP Shell Script $argc $argv[] #!/usr/local/bin/php -q <? $sum=0; $sum=$sum+$argv[1]+$argv[2]; echo $sum; (ex4-2.php) ex4-2.php ex4-2.php 1 2 Enter 3 Enter chmod +x chmod +x ex4-2.php

150 144 PHP&MySQL $argc #!/usr/local/bin/php -q <? $sum=0; for ($t=1;$t<=$argc;$t++) $sum=$sum+$argv[$t]; echo $sum; (ex4-3.php) ex4-3.php ex4-3.php ex4-3.php PHP PHP Shell Script Linux/Uinx /dev/stdin (stdin standard input ) #!/usr/local/bin/php -q <? $fp=fopen("/dev/stdin","r"); $inputstr=fgets($fp,100); fclose($fp); echo "\n \n"; echo $inputstr; (ex4-4.php) fgets($fp,100) $fp ( "/dev/stdin") 100 Enter

151 HTML #!/usr/local/bin/php -q <? $fp=fopen("/dev/stdin","r"); while(!feof($fp)) { $c=fgetc($fp); $inputstr=$inputstr.$c; }; fclose($fp); echo $inputstr; (ex4-5.php) ex4-5.php Ctrl+D more ex4-5.php ex4-5.php3 ex4-5.php more ex4-5.php ex4-5.php ( ex4-5.php ) HTML #!/usr/local/bin/php -q <? $fp=fopen("/dev/stdin","r"); while(!feof($fp)) { $c=fgetc($fp); $inputstr=$inputstr.$c;

untitled

untitled 01 1-1 PHP 1-2 PHP 1-3 MySQL 1-4 1-5 http://w3techs.com/technologies/history_overview/programming_language w3techs.com (Server-side) 2012 7 77.8% PHP PHP PHP PHP 1-1 PHP PHP HTML Script Windows ASP(Active

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Perl CGI 1 Perl CGI 2 Perl CGI 3 Perl CGI 4 1. 2. 1. #!/usr/local/bin/perl 2. print "Content-type: text/html n n"; 3. print " n"; 4. print " n"; 3. 4.

More information

Microsoft Word - PHP7Ch01.docx

Microsoft Word - PHP7Ch01.docx PHP 01 1-6 PHP PHP HTML HTML PHP CSSJavaScript PHP PHP 1-6-1 PHP HTML PHP HTML 1. Notepad++ \ch01\hello.php 01: 02: 03: 04: 05: PHP 06:

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

epub 61-2

epub 61-2 2 Web Dreamweaver UltraDev Dreamweaver 3 We b We b We Dreamweaver UltraDev We b Dreamweaver UltraDev We b We b 2.1 Web We b We b D r e a m w e a v e r J a v a S c r i p t We b We b 2.1.1 Web We b C C +

More information

四川省普通高等学校

四川省普通高等学校 四 川 省 普 通 高 等 学 校 计 算 机 应 用 知 识 和 能 力 等 级 考 试 考 试 大 纲 (2013 年 试 行 版 ) 四 川 省 教 育 厅 计 算 机 等 级 考 试 中 心 2013 年 1 月 目 录 一 级 考 试 大 纲 1 二 级 考 试 大 纲 6 程 序 设 计 公 共 基 础 知 识 6 BASIC 语 言 程 序 设 计 (Visual Basic) 9

More information

RUN_PC連載_10_.doc

RUN_PC連載_10_.doc PowerBuilder 8 (10) Jaguar CTS ASP Jaguar CTS PowerDynamo Jaguar CTS Microsoft ASP (Active Server Pages) ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar Server ASP

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

More information

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 Web (CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 1092 1/ 16 30.75 748 2005 1 1 2005 1 1 : 1 3 100

More information

XXXXXXXX http://cdls.nstl.gov.cn 2 26

XXXXXXXX http://cdls.nstl.gov.cn 2 26 [ ] [ ] 2003-7-18 1 26 XXXXXXXX http://cdls.nstl.gov.cn 2 26 (2003-7-18) 1...5 1.1...5 1.2...5 1.3...5 2...6 2.1...6 2.2...6 2.3...6 3...7 3.1...7 3.1.1...7 3.1.2...7 3.1.2.1...7 3.1.2.1.1...8 3.1.2.1.2...10

More information

目 錄 第 一 章 weberp 簡 介... 6 第 一 節 概 述... 6 第 二 節 安 全 性... 7 第 三 節 功 能... 7 一 銷 售 及 訂 單... 7 二 稅... 8 三 應 收 帳 款... 8 四 存 貨... 8 五 購 買... 9 六 應 付 帳 款... 9

目 錄 第 一 章 weberp 簡 介... 6 第 一 節 概 述... 6 第 二 節 安 全 性... 7 第 三 節 功 能... 7 一 銷 售 及 訂 單... 7 二 稅... 8 三 應 收 帳 款... 8 四 存 貨... 8 五 購 買... 9 六 應 付 帳 款... 9 東 吳 大 學 企 研 所 資 訊 管 理 期 末 報 告 weberp 使 用 說 明 書 指 導 教 授 : 尚 榮 安 教 授 第 一 組 童 偉 哲 01353025 劉 彥 澧 01353028 史 璦 禎 01353031 吳 采 紋 98153143 1 目 錄 第 一 章 weberp 簡 介... 6 第 一 節 概 述... 6 第 二 節 安 全 性... 7 第 三 節 功

More information

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2. 2005-06 p.1 HTML HyperText Mark-up Language 1. HTML Logo, Pascal, C++, Java HTML 2. HTML (tag) 3. HTML 4. HTML 1. HTML 2. 3. FTP HTML HTML html 1. html html html cutehtmleasyhtml 2. wyswyg (What you see

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费 助 理 电 子 商 务 考 试 真 题 试 题 第 一 部 分 : 理 论 部 分 一 单 项 选 择 题 1 ( B ) 是 信 息 系 统 的 核 心 组 成 部 分 A 逻 辑 模 型 B 数 据 库 C 概 念 模 型 D 以 上 全 部 2 ping www.163.com -t 中 参 数 t 的 作 用 是 :( A ) A 进 行 连 续 测 试 B 在 新 窗 口 中 显 示 C

More information

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

More information

Perl

Perl Perl 磊 Goal Introduction The first perl program Basical coding style Variable Data structure Control structure Regular expression Lab Reference Outline The first perl program Just type this following string

More information

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2 HTML A-1 HTML A-2 A-2 HTML A-8 A-3 A-14 A-4 A-26 A-5 A-30 A-6 A-42 A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ /

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

C6_ppt.PDF

C6_ppt.PDF C01-202 1 2 - (Masquerade) (Replay) (Message Modification) (Denial of Service) - ( ) (Eavesdropping) (Traffic Analysis) 8 1 2 7 3 6 5 4 3 - TCP SYN (SYN flood) Smurf Ping of Death LAND Attack Teardrop

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 WWW PHP 2003 1 Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2 Comments PHP Shell Style: # C++ Style: // C Style: /* */ $value = $p * exp($r * $t); # $value

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

软件测试(TA07)第一学期考试

软件测试(TA07)第一学期考试 一 判 断 题 ( 每 题 1 分, 正 确 的, 错 误 的,20 道 ) 1. 软 件 测 试 按 照 测 试 过 程 分 类 为 黑 盒 白 盒 测 试 ( ) 2. 在 设 计 测 试 用 例 时, 应 包 括 合 理 的 输 入 条 件 和 不 合 理 的 输 入 条 件 ( ) 3. 集 成 测 试 计 划 在 需 求 分 析 阶 段 末 提 交 ( ) 4. 单 元 测 试 属 于 动

More information

.. 3 N

.. 3 N 1 .. 3 N9.. 4 5.. 6 7.. 8 20.. 21 23.. 24.. 25 26.. 27.. 28.. 29 2 (Cyber Café) Linux (LAN) Linux Public Home 3 K12LTSP K12LTSPFedora Core 4 (Linux)LTSP Linux (command line interface) (Graphical User Interface,

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

ebook4-12

ebook4-12 12 CGI C G I (Common Gateway Interface) We b P H P C G I H T M L H T T P H T M L We b H T T P We We b I n t e r n e t R F C h t t p : / / w w w. i e t f. o rg / P H P C G I C G A p a c h e C G I P H P

More information

Microsoft Word - linux命令及建议.doc

Microsoft Word - linux命令及建议.doc Linux 操 作 系 统 命 令 集 1 基 本 命 令 查 看 系 统 信 息 : uname -a 修 改 密 码 : passwd 退 出 : logout(exit) 获 取 帮 助 : man commands 2 文 件 和 目 录 命 令 显 示 当 前 工 作 目 录 : pwd 改 变 所 在 目 录 : cd cd - 切 换 到 上 一 次 使 用 的 目 录 cd 切 换

More information

<4D6963726F736F667420576F7264202D20383439342D352DBED6D3F2CDF8D7E9BDA8D3EBB9DCC0EDCFEEC4BFBDCCB3CCD5FDCEC42E646F63>

<4D6963726F736F667420576F7264202D20383439342D352DBED6D3F2CDF8D7E9BDA8D3EBB9DCC0EDCFEEC4BFBDCCB3CCD5FDCEC42E646F63> 第 4 单 元 搭 建 自 己 的 Web 站 点 本 单 元 通 过 学 习 架 构 Web 服 务 器, 实 现 Web 服 务, 管 理 Web 站 点, 了 解 Web 站 点 服 务 器 的 架 构 个 人 空 间 和 虚 拟 主 机 的 概 念, 掌 握 IIS 组 件 的 安 装 Web 站 点 的 创 建 管 理 站 点 属 性 选 项 卡 的 配 置 管 理 等 知 识,Web 网

More information

ebook 185-6

ebook 185-6 6 Red Hat Linux DB2 Universal Database 6.1 D B 2 Red Hat D B 2 Control Center D B 2 D B 2 D B 2 6.1 DB2 Universal Database [DB2]6.1 D B 2 O LT P O L A P D B 2 I B M P C We e k D B 2 D B 2 L i n u x Windows

More information

RUN_PC連載_8_.doc

RUN_PC連載_8_.doc PowerBuilder 8 (8) Web DataWindow ( ) DataWindow Web DataWindow Web DataWindow Web DataWindow PowerDynamo Web DataWindow / Web DataWindow Web DataWindow Wizard Web DataWindow Web DataWindow DataWindow

More information

Microsoft Word - PS2_linux_guide_cn.doc

Microsoft Word - PS2_linux_guide_cn.doc Linux For $ONY PlayStatioin2 Unofficall General Guide Language: Simplified Chinese First Write By Beter Hans v0.1 Mail: hansb@citiz.net Version: 0.1 本 人 是 菜 鸟 + 小 白 欢 迎 指 正 错 误 之 处, 如 果 您 有 其 他 使 用 心 得

More information

RunPC2_.doc

RunPC2_.doc PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection

More information

IP505SM_manual_cn.doc

IP505SM_manual_cn.doc IP505SM 1 Introduction 1...4...4...4...5 LAN...5...5...6...6...7 LED...7...7 2...9...9...9 3...11...11...12...12...12...14...18 LAN...19 DHCP...20...21 4 PC...22...22 Windows...22 TCP/IP -...22 TCP/IP

More information

本文由筱驀釹贡献

本文由筱驀釹贡献 本 文 由 筱 驀 釹 贡 献 ppt 文 档 可 能 在 WAP 端 浏 览 体 验 不 佳 建 议 您 优 先 选 择 TXT, 或 下 载 源 文 件 到 本 机 查 看 Linux 操 作 系 统 Linux 操 作 系 统 第 一 部 分 介 绍 与 安 装 Linux 的 由 来 : Linux 的 由 来 : 的 由 来 Linus Torvalds 1.Linux 的 版 本 1.Linux

More information

第5章修改稿

第5章修改稿 (Programming Language), ok,, if then else,(), ()() 5.0 5.0.0, (Variable Declaration) var x : T x, T, x,,,, var x : T P = x, x' : T P P, () var x:t P,,, yz, var x : int x:=2. y := x+z = x, x' : int x' =2

More information

软件概述

软件概述 Cobra DocGuard BEIJING E-SAFENET SCIENCE & TECHNOLOGY CO.,LTD. 2003 3 20 35 1002 010-82332490 http://www.esafenet.com Cobra DocGuard White Book 1 1....4 1.1...4 1.2 CDG...4 1.3 CDG...4 1.4 CDG...5 1.5

More information

CHAPTER 1

CHAPTER 1 CHAPTER 1 1-1 System Development Life Cycle; SDLC SDLC Waterfall Model Shelly 1995 1. Preliminary Investigation 2. System Analysis 3. System Design 4. System Development 5. System Implementation and Evaluation

More information

ebook140-9

ebook140-9 9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I

More information

(HMI) IO A

(HMI) IO A 6.5 6.5 (HMI) IO 6.52 6.52 6.5 2007 113 A 602 100086 010 82616619 010 62638166 www.kingview.com 4 7 25 38 43 52 63 68 86 SQL 95 99 WEB 105 Web Web Web I/O Microsoft Windows XP/NT/2000 I/O PLC PLC PLC PLC

More information

Microsoft PowerPoint - P766Ch13.ppt

Microsoft PowerPoint - P766Ch13.ppt PHP5&MySQL 程式設計 第 13 章存取 My SQL 資料庫 13-1 PHP 與 MySQL 資料庫 PHP 提供了數十個函式供我們存取 MySQL 資料庫, 包括 : mysql_affected_rows() mysql_client_encoding() mysql_close() mysql_connect() mysql_create_db() mysql_data_seek()

More information

untitled

untitled Database System Principle Database System Principle 1 SQL 3.1 SQL 3.2-3.3 3.4 3.5 3.6 Database System Principle 2 3.1 SQL SQL Structured Query Language SQL Database System Principle 3 SQL 3.1.1 SQL 3.1.2

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT au_fname,au_ lname FROM authors ORDER BY

0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT au_fname,au_ lname FROM authors ORDER BY 0 SQL SQL SELECT DISTINCT city, state FROM customers; SQL SQL DBMS SQL DBMS SQL 0-1 SQL SQL 0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT

More information

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 Java V1.0.1 2007 4 10 1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 6.2.10 6.3..10 6.4 11 7.12 7.1

More information

RUN_PC連載_12_.doc

RUN_PC連載_12_.doc PowerBuilder 8 (12) PowerBuilder 8.0 PowerBuilder PowerBuilder 8 PowerBuilder 8 / IDE PowerBuilder PowerBuilder 8.0 PowerBuilder PowerBuilder PowerBuilder PowerBuilder 8.0 PowerBuilder 6 PowerBuilder 7

More information

Microsoft Word - 100118002.htm

Microsoft Word - 100118002.htm 100 年 度 11800 電 腦 軟 體 應 用 乙 級 技 術 士 技 能 檢 定 學 科 測 試 試 題 本 試 卷 有 選 擇 題 80 題, 每 題 1.25 分, 皆 為 單 選 選 擇 題, 測 試 時 間 為 100 分 鐘, 請 在 答 案 卡 上 作 答, 答 錯 不 倒 扣 ; 未 作 答 者, 不 予 計 分 准 考 證 號 碼 : 姓 名 : 選 擇 題 : 1. (3)

More information

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S

一 個 SQL Injection 實 例 的 啟 示 頁 2 / 6 因 此, 在 知 名 網 站 上 看 到 SQL Injection, 讓 人 驚 心, 卻 不 意 外 網 站 專 案 外 包 是 目 前 業 界 的 常 態, 而 在 價 格 取 勝 的 制 度 下, 低 價 得 標 的 S 一 個 SQL Injection 實 例 的 啟 示 頁 1 / 6 你 的 網 站 在 裸 奔 嗎? 一 個 SQL Injection 實 例 的 啟 示 作 者 : 李 明 儒 SQL Injection( 資 料 隱 碼 攻 擊 ) 問 題 早 就 不 是 什 麼 新 聞, 但 前 陣 子 在 一 個 頗 具 知 名 度 的 活 動 網 站 上, 赫 然 發 現 它 大 刺 刺 地 現 身!

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

09 (File Processes) (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises)

09 (File Processes) (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises) 09 (File Processes) 9-1 9-2 (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises) Java Servlet 9-1 Servlet (File Processes) Client Servlet Servlet Java Java (Stream)

More information

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF Chapter 2 WF 2.1 WF 2.2 2. XAML 2. 2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF WF WF WF WF EDI API WF Visual Studio Designer 1 2.1 WF Windows Workflow Foundation 2 WF 1 WF Domain-Specific

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

SiteView技术白皮书

SiteView技术白皮书 SiteView ECC V6.2 技 术 白 皮 书 游 龙 网 络 科 技 ( 中 国 ) 有 限 公 司 DragonFlow Networks(China),Inc. 目 录 第 一 章 产 品 概 述... 3 第 二 章 系 统 结 构... 6 一 系 统 架 构... 7 1 用 户 管 理 模 块... 7 2 Web Server... 8 3 存 储 加 密 模 块... 8

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

untitled

untitled 1 Outline 料 類 說 Tang, Shih-Hsuan 2006/07/26 ~ 2006/09/02 六 PM 7:00 ~ 9:30 聯 ives.net@gmail.com www.csie.ntu.edu.tw/~r93057/aspnet134 度 C# 力 度 C# Web SQL 料 DataGrid DataList 參 ASP.NET 1.0 C# 例 ASP.NET 立

More information

Web

Web Email: tian@dr.com http://www.digiark.com/tian Web 1. 2. 3. 4. 5. 6. Internet Internet (Hacker) Internet web IP 1 Internet UNIX Windows VLAN Internet IP 2 Internet FTP TELNET PING IP 8 telnet FTP RLOGIN

More information

Junos Pulse Mobile Security R1 2012, Juniper Networks, Inc.

Junos Pulse Mobile Security R1 2012, Juniper Networks, Inc. Junos Pulse Mobile Security 4.0 2012 6 R1 2012, Juniper Networks, Inc. Junos Pulse Mobile Security Juniper Networks, Inc. 1194 North Mathilda Avenue Sunnyvale, California 94089 408-745-2000 www.juniper.net

More information

IBM Rational ClearQuest Client for Eclipse 1/ IBM Rational ClearQuest Client for Ecl

IBM Rational ClearQuest Client for Eclipse   1/ IBM Rational ClearQuest Client for Ecl 1/39 Balaji Krish,, IBM Nam LeIBM 2005 4 15 IBM Rational ClearQuest ClearQuest Eclipse Rational ClearQuest / Eclipse Clien Rational ClearQuest Rational ClearQuest Windows Web Rational ClearQuest Client

More information

基于UML建模的管理管理信息系统项目案例导航——VB篇

基于UML建模的管理管理信息系统项目案例导航——VB篇 PowerBuilder 8.0 PowerBuilder 8.0 12 PowerBuilder 8.0 PowerScript PowerBuilder CIP PowerBuilder 8.0 /. 2004 21 ISBN 7-03-014600-X.P.. -,PowerBuilder 8.0 - -.TP311.56 CIP 2004 117494 / / 16 100717 http://www.sciencep.com

More information

AL-MX200 Series

AL-MX200 Series PostScript Level3 Compatible NPD4760-00 TC Seiko Epson Corporation Seiko Epson Corporation ( ) Seiko Epson Corporation Seiko Epson Corporation Epson Seiko Epson Corporation Apple Bonjour ColorSync Macintosh

More information

1. ( B ) IT (A) (B) (C) (D) 2. ( A ) (A) (B) (C) (D) 3. ( B ) (A) GPS (B) GIS (C) ETC (D) CAI 4. ( D ) (A) (B) (C) (D) 5. ( B ) (Stored Program) (A) H

1. ( B ) IT (A) (B) (C) (D) 2. ( A ) (A) (B) (C) (D) 3. ( B ) (A) GPS (B) GIS (C) ETC (D) CAI 4. ( D ) (A) (B) (C) (D) 5. ( B ) (Stored Program) (A) H ... 2... 4... 6... 8... 10... 12... 14... 16... 18... 20... 22... 24... 25... 26... 28 1. ( B ) IT (A) (B) (C) (D) 2. ( A ) (A) (B) (C) (D) 3. ( B ) (A) GPS (B) GIS (C) ETC (D) CAI 4. ( D ) (A) (B) (C)

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

VIDEOJET connect 7000 VJC-7000-90 zh- CHS Operation Manual VIDEOJET connect 7000 zh-chs 3 目 录 1 浏 览 器 连 接 7 1.1 系 统 要 求 7 1.2 建 立 连 接 7 1.2.1 摄 像 机 中 的 密 码 保 护 7 1.3 受 保 护 的 网 络 7 2 系 统 概 述 8 2.1 实 况

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information

Oracle 4

Oracle 4 Oracle 4 01 04 Oracle 07 Oracle Oracle Instance Oracle Instance Oracle Instance Oracle Database Oracle Database Instance Parameter File Pfile Instance Instance Instance Instance Oracle Instance System

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

投影片 1

投影片 1 FreeBSD A 95/10/11 19:00~21:00 95/10/11 FreeBSD 練 1 Services Setup SSH, lighttpd, PHP, MySQL, FTP, Postfix, phpmyadmin, Blog, Gallery 95/10/11 FreeBSD 練 2 1. 2. # FreeBSD # 3. vi ee joe nano etc 95/10/11

More information

目錄

目錄 資 訊 素 養 線 上 教 材 單 元 五 資 料 庫 概 論 及 Access 5.1 資 料 庫 概 論 5.1.1 為 什 麼 需 要 資 料 庫? 日 常 生 活 裡 我 們 常 常 需 要 記 錄 一 些 事 物, 以 便 有 朝 一 日 所 記 錄 的 事 物 能 夠 派 得 上 用 場 我 們 能 藉 由 記 錄 每 天 的 生 活 開 銷, 就 可 以 在 每 個 月 的 月 底 知

More information

untitled

untitled OO 1 SQL Server 2000 2 SQL Server 2000 3 SQL Server 2000 DDL 1 2 3 DML 1 INSERT 2 DELETE 3 UPDATE SELECT DCL 1 SQL Server 2 3 GRANT REVOKE 1 2 1 2 3 4 5 6 1 SQL Server 2000 SQL Server SQL / Microsoft SQL

More information

untitled

untitled http://idc.hust.edu.cn/~rxli/ 1.1 1.2 1.3 1.4 1.5 1.6 2 1.1 1.1.1 1.1.2 1.1.3 3 1.1.1 Data (0005794, 601,, 1, 1948.03.26, 01) (,,,,,) 4 1.1.1 Database DB 5 1.1.1 (DBMS) DDL ( Create, Drop, Alter) DML(

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information

計畫書封面範例

計畫書封面範例 致 理 技 術 學 院 資 訊 管 理 系 專 題 期 末 報 告 書 藝 網 情 深 學 生 : 陳 暐 儒 (19810202) 陳 志 蒂 (19810138) 李 翊 菡 (19810117) 陳 志 萱 (19810237) 林 宛 柔 (19810218) 胡 肇 群 (19810213) 本 成 果 報 告 書 經 審 查 及 口 試 合 格 特 此 證 明 指 導 老 師 : 中 華

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

ebook8-30

ebook8-30 3 0 C C C C C C++ C + + C++ GNU C/C++ GNU egcs UNIX shell s h e l l g a w k P e r l U N I X I / O UNIX shell awk P e r l U N I X C C C C C C U N I X 30.1 C C U N I X 70 C C U N I X U N I X U N I X C Dennis

More information

Microsoft Word - 改版式网页全文.doc

Microsoft Word - 改版式网页全文.doc 第 4 章 Dreamweaver CS3 高 级 篇 4.1 表 单 概 述 表 单 是 用 来 收 集 浏 览 者 的 用 户 名 密 码 E-mail 地 址 个 人 爱 好 和 联 系 地 址 等 用 户 信 息 的 输 入 区 域 集 合 浏 览 者 填 写 表 单 的 方 式 一 般 是 输 入 文 本 选 择 单 选 按 钮 或 复 选 框 以 及 从 下 拉 列 表 框 中 选 择

More information

Azure_s

Azure_s Azure ? Azure Azure Windows Server Database Server Azure Azure Azure Azure Azure Azure Azure Azure OpenSource Azure IaaS Azure VM Windows Server Linux PaaS Azure ASP.NET PHP Node.js Python MS SQL MySQL

More information

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 CHAPTER 1 Understanding Core Database Concepts 1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 1 Understanding Core Database Concepts

More information

ebook65-20

ebook65-20 2 0 H T T P C G I We b C G I We b H T M L C G I H T M L C G I 20.1 HTTP 17 We b N e t s c a p e Internet Explorer We b A p a c h e I I S C G I H T T P HTTP 1.0 HTTP 1.1 I n t e r n e t I n t e r n e t

More information

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與 程 式 編 写 語 言 在 完 成 這 章 後, 你 將 能 夠 了 解 程 式 編 写 語 言 的 功 能 了 解 高 階 語 言 和 低 階 語 言 之 間 的 分 別 知 道 翻 譯 程 式 的 意 義 和 能 夠 把 翻 譯 程 式 分 類 為 : 匯 編 程 式 編 譯 程 式 和 解 譯 程 式 認 識 不 同 翻 譯 程 式 的 優 點 和 缺 點 程 式 是 指 揮 電 腦 的 指

More information

2007

2007 2007 年 上 半 年 软 件 评 测 师 考 试 浅 析 作 者 : 陈 嘉 祥 方 耀 公 司 : 广 东 亿 迅 科 技 有 限 公 司 ( 质 量 管 理 部 ) 1 简 介 1.1 目 的 本 文 章 主 要 介 绍 软 件 评 测 师 考 试 的 范 围 内 容 以 及 其 重 要 性, 还 有 相 关 的 试 题 分 析 1.2 适 用 范 围 有 意 参 与 或 将 来 有 意 参

More information

SP_ SP_03 JAVA...6 SP_10 SQL...8 SP_ SP_ SP_ SP_ SP_ SP_ SP_ SP_04.NET...33 SP_02 C...37 SP_05

SP_ SP_03 JAVA...6 SP_10 SQL...8 SP_ SP_ SP_ SP_ SP_ SP_ SP_ SP_04.NET...33 SP_02 C...37 SP_05 1 SP_01...3 SP_03 JAVA...6 SP_10 SQL...8 SP_51...12 SP_32...15 SP_53...18 SP_20...21 SP_22...24 SP_21...27 SP_23...30 SP_04.NET...33 SP_02 C...37 SP_05 FLASH...39 SP_06...42 2 SP_01 1. 8. Excel 2. 9. PowerPoint

More information

http://panweizeng.com http://meituan.com http://meituan.com hosts http://meituan.com hosts localhost 127.0.0.1 /etc/nsswitch.conf /etc/hosts /etc/resolv.conf Mail Client Web Browser cache 1-30mins Clients

More information

untitled

untitled 1 .NET sln csproj dll cs aspx 說 料 料 利 來 料 ( 來 ) 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Click 滑 料 Response 列 料 Response HttpResponse 類 Write 料 Redirect URL Response.Write("!!

More information

IsPostBack 2

IsPostBack 2 5 IsPostBack 2 TextBox 3 TextBox TextBox 4 TextBox TextBox 1 2 5 TextBox Columns MaxLength ReadOnly Rows Text TextMode TextMode MultiLine TextMode MultiLine True False TextMode MultiLine Password MulitLine

More information

untitled

untitled 不 料 料 例 : ( 料 ) 串 度 8 年 數 串 度 4 串 度 數 數 9- ( ) 利 數 struct { ; ; 數 struct 數 ; 9-2 數 利 數 C struct 數 ; C++ 數 ; struct 省略 9-3 例 ( 料 例 ) struct people{ char name[]; int age; char address[4]; char phone[]; int

More information

Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University

Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University 2003 6 Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University E-mail: yclin@mail.stu.edu.tw Web Mobile Device Web Service Web Service

More information

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南 Symantec Sygate Enterprise Protection 防 护 代 理 安 装 使 用 指 南 5.1 版 版 权 信 息 Copyright 2005 Symantec Corporation. 2005 年 Symantec Corporation 版 权 所 有 All rights reserved. 保 留 所 有 权 利 Symantec Symantec 徽 标 Sygate

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

上海市教育考试院关于印发新修订的

上海市教育考试院关于印发新修订的 沪 教 考 院 社 考 2012 7 号 上 海 市 教 育 考 试 院 关 于 印 发 上 海 市 高 等 学 校 计 算 机 等 级 考 试 大 纲 (2012 年 修 订 ) 的 通 知 各 有 关 高 校 : 为 进 一 步 加 强 本 市 高 校 计 算 机 基 础 教 学 工 作, 推 进 学 校 更 加 科 学 合 理 地 设 置 计 算 机 基 础 课 程 及 安 排 教 学 内 容,

More information

網站安全

網站安全 2 3 4 5 6 7 8 9 : 10 ( ) E-mail rdec@rdec.gov.tw 11 (PATCH) 12 ( ) 13 cookie 14 1. 2. 3. 4. 15 cookie Cookie Netscape IE Internet cookie cookie cookie cookie 16 MS Internet Explorer 6.x-> -> 17 cookie

More information

Microsoft PowerPoint - OPVB1基本VB.ppt

Microsoft PowerPoint - OPVB1基本VB.ppt 大 綱 0.VB 能 做 什 麼? CH1 VB 基 本 認 識 1.VB 歷 史 與 版 本 2.VB 環 境 簡 介 3. 即 時 運 算 視 窗 1 0.VB 能 做 什 麼? Visual Basic =>VB=> 程 式 設 計 語 言 => 設 計 程 式 設 計 你 想 要 的 功 能 的 程 式 自 動 化 資 料 庫 計 算 模 擬 遊 戲 網 路 監 控 實 驗 輔 助 自 動

More information

FileMaker 16 ODBC 和 JDBC 指南

FileMaker 16 ODBC 和 JDBC 指南 FileMaker 16 ODBC JDBC 2004-2017 FileMaker, Inc. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker FileMaker Go FileMaker, Inc. FileMaker WebDirect FileMaker Cloud FileMaker,

More information

5-1 nav css 5-2

5-1 nav css 5-2 5 HTML CSS HTML CSS Ê Ê Ê Ê 5-1 nav css 5-2 5-1 5 5-1-1 5-01 css images 01 index.html 02 5-3 style.css css 03 CH5/5-01/images 04 images index.html style.css 05

More information

1

1 DOCUMENTATION FOR FAW-VW Auto Co., Ltd. Sales & Service Architecture Concept () () Version 1.0.0.1 Documentation FAW-VW 1 61 1...4 1.1...4 2...4 3...4 3.1...4 3.2...5 3.3...5 4...5 4.1 IP...5 4.2 DNSDNS...6

More information

DR2010.doc

DR2010.doc DR/2010 HACH 11-8-96-2 HACH. DR/2010, / UL E79852 CSA C22.223 LR 58275 VDE GS 1015-92 FCC"A" 15 : AMADOR CORP, HACH. EN50 011/CISPR 11 "B" (EMI)/89/336/EEC/EMC: AMADOR CORP, HACH.. EN50 082-1( )/89/226/EEC

More information

AL-M200 Series

AL-M200 Series NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel

More information

untitled

untitled MODBUS 1 MODBUS...1 1...4 1.1...4 1.2...4 1.3...4 1.4... 2...5 2.1...5 2.2...5 3...6 3.1 OPENSERIAL...6 3.2 CLOSESERIAL...8 3.3 RDMULTIBIT...8 3.4 RDMULTIWORD...9 3.5 WRTONEBIT...11 3.6 WRTONEWORD...12

More information