PHP4徹底攻略 改訂版
|
|
- なごみ うえや
- 7 years ago
- Views:
Transcription
1 Part-1 PHP
2 Chapter -1 PHP 1.1 WWW World Wide Web 2 Part-1
3 / 1.2 Web Chapter -1 3
4 Part-1
5 Chapter -1 5
6 1.3 PHP ƒ 6 Part-1
7 ƒ ƒ ƒ ƒ ƒ ƒ ƒ Chapter -1 7
8 8 Part-1
9 ƒ Chapter -1 9
10 Part-1
11 Chapter -1 11
12 12 Part-1
13 Chapter -2 PHP Hello, World! <? print "Hello, world! n"; Chapter -2 13
14 Part-1
15 nkf -e > kcc -c Chapter -2 15
16 Forbidden You don't have permission to access /~hotta/1-2/test1.php on this server Apache/ Server at star.example.com Port ~$ ls -ld /home/hotta drwx hotta hotta 4096 May 30 17:08 /home/hotta/ ~$ chmod 701 /home/hotta ~$ ls -ld /home/hotta drwx-----x 41 hotta hotta 4096 May 30 17:08 /home/hotta/ 16 Part-1
17 2.4 ~$ cd public_html/1-2 ~/public_html/1-2$ php -q./test1.php Hello, World! ~/public_html/1-2$ cat test1a.php #!/usr/bin/php -q print "Hello, World! n"; ~/public_html/1-2$ chmod +x test1a.php ~/public_html/1-2$./test1a.php Hello, World! Chapter -2 17
18 ~/public_html$ w3m localhost/~hotta/1-2/test1.php ~$ w3m -dump localhost/~hotta/1-2/test1.php Hello, World! ~$ w3m -dump./public_html/ 1-2/test1.php print "Hello, World! n"; 18 Part-1
19 2.5 $a = 1 + 2; print "1 + 2 = ".$a." n"; ~/public_html/1-2$ php -q test2.php = HTML <HTML> <BODY> <U>1 + 2 = <FONT COLOR="red"> print 1 + 2; </FONT></U> </BODY> </HTML> Chapter -2 19
20 2.7 PHP $result = 1 + 2; print "<HTML> n". "<BODY> n". "<U>1 + 2 = <FONT COLOR= "red ">$result</font></u> n". "</BODY> n". "</HTML> n"; 20 Part-1
21 2.8 $result = 1 + 2; print <<<EOF <HTML> <BODY> <U>1 + 2 = <FONT COLOR="red">$result</FONT></U> </BODY> </HTML> EOF; 2.9 Chapter -2 21
22 <HTML> <BODY> <FORM METHOD="GET" ACTION="test4.php"> <INPUT TYPE="text" NAME="yyyy"> <INPUT TYPE="submit" VALUE=" "> </FORM> </BODY> </HTML> w3m 22 Part-1
23 2.10 <HTML> <BODY> $meiji = $_GET['yyyy'] ; $taisho = $_GET['yyyy'] ; $showa = $_GET['yyyy'] ; $heisei = $_GET['yyyy'] ; print " {$_GET['yyyy']} "; print " {$meiji} {$taisho} <BR> n". " {$showa} {$heisei}<br> n"; </BODY> </HTML> Chapter -2 23
24 URL w3m 24 Part-1
25 2.12 <HTML> <BODY> if (empty($_get['yyyy'])): <FORM action="test41.php"> <INPUT TYPE=text NAME=yyyy> <INPUT TYPE=submit> </FORM> else: $meiji = $_GET['yyyy'] ; $taisho = $_GET['yyyy'] ; $showa = $_GET['yyyy'] ; $heisei = $_GET['yyyy'] ; print " {$_GET['yyyy']} {$meiji} {$taisho} <BR> n". " {$showa} {$heisei} <BR> n"; endif; </BODY> </HTML> Chapter -2 25
26 Part-1
27 ; if : ; ; endif; display_input_area(); // if (!empty($_get['yyyy']) && input_is_valid()): $result = calc_gengou(); // display_result($result); // endif; Chapter -2 27
28 function func1() 3 { 4 print "func1() n"; 5 return FALSE; 6 } 7 function func2() 8 { 9 print "func2() n"; 10 return TRUE; 11 } 12 if (func1() && func2()): 13 print "TRUE n"; 14 else: 15 print "FALSE n"; 16 endif; Part-1
29 ~/public_html/1-2$ php -q test6.php func1() FALSE function strlen($text) { print $text; } $foo = "ABC"; print "strlen( $foo)=". strlen($foo); Chapter -2 29
30 Fatal error: Cannot redeclare strlen() in test7.php on line display_input_area(); // if (!empty($_get['yyyy']) && input_is_valid()): $result = calc_gengou(); // display_result($result); // endif; 30 Part-1
31 // // // function display_input_area() { print <<< EOD <FORM action="{$_server['php_self']}"> <INPUT TYPE=text NAME=yyyy SIZE=5 VALUE="{$_GET['yyyy']}"> <INPUT TYPE=submit VALUE=" "> </FORM> EOD ; } require_once("display.inc"); // include_once("...") Chapter -2 31
32 <Files ~ "^.inc"> Order allow,deny Deny from all </Files> 2.16 // // // function input_is_valid() { if (ereg("^[12][0-9]{3}$", $_GET['yyyy'])): return TRUE; endif; return FALSE; } 32 Part-1
33 ƒ ^ $? 0 1 * {n} n {m,n} m n [abc] a b c [a-z] [0-9A-Za-z] [^0-9] or (...) 2.17 Chapter -2 33
34 // // // function calc_gengou() { $result = array(); $result[' '] = $_GET['yyyy'] ; $result[' '] = $_GET['yyyy'] ; $result[' '] = $_GET['yyyy'] ; $result[' '] = $_GET['yyyy'] ; return $result; } 2.18 // // // function display_result($wareki) { printf(" %d %d %d <BR> n". " %d %d <BR> n", $_GET['yyyy'], $wareki[' '], $wareki[' '], $wareki[' '], $wareki[' ']); } 34 Part-1
35 // // // include_once("display.inc"); include_once("input.inc"); include_once("calc.inc"); include_once("result.inc"); if (empty($_get['yyyy'])): $_GET['yyyy'] = ""; endif; display_input_area(); if (!empty($_get['yyyy']) && input_is_valid()): $result = calc_gengou(); endif; display_result($result); // // // // Chapter -2 35
36 Chapter -3 PHP 3.1 HTML <HTML><BODY> echo(" PHP n"); </BODY></HTML> echo "<HTML><BODY> n"; echo(" PHP n"); echo "</BODY></HTML> n"; 36 Part-1
37 echo <<< EOD <HTML><BODY> </BODY></HTML> EOD ; 3.2 ƒ echo(" PHP n"); echo (" PHP n"); Chapter
38 ƒ <script language="php"> echo(" PHP "); </script> ƒ <?% echo(" PHP n"); %> ƒ <? echo(" PHP n"); 3.3 ECHO(" OK"); Echo(" OK"); echo(" OK"); 38 Part-1
39 3.4 echo(" 1"); /* C */ echo(" 2"); // Java Chapter
40 '[a-za-z_ x7f- xff][a-za-z0-9_ x7f- xff]*' Part-1
41 $foo = "0"; // $foo "0" echo " $foo=$foo ". gettype($foo). " n"; $foo++; // $foo 1 echo " $foo=$foo ". gettype($foo). " n"; $foo += 1; // $foo 2 echo " $foo=$foo ". gettype($foo). " n"; $foo = $foo + 1.3; // $foo 3.3 echo " $foo=$foo ". gettype($foo). " n"; $foo = 5 + "10 Little Piggies"; // $foo 15 echo " $foo=$foo ". gettype($foo). " n"; hotta@star ~/public_html/1-3$ php -q ex11.php $foo=0 string $foo=1 integer $foo=2 integer $foo=3.3 double $foo=15 integer 3.10 $foo = 10; $bar = (double) $foo; Chapter - 3 // $foo // $bar 41
42 (int) (integer)... (real) (double) (float)... (string)... (array)... (object) $foo = 1 + "10.5"; // $foo (11.5) $foo = 1 + "-1.3e3"; // $foo (-1299) $foo = 1 + "bob-1.3e3"; // $foo (1) $foo = 1 + "bob3"; // $foo (1) $foo = 1 + "10 Small Pigs"; // $foo (11) Part-1
43 $fruits[] = " "; $fruits[] = " "; $fruits[3] = " "; // $fruits[0] = " " // $fruits[1] = " " // $fruits[3] = " " // $fruits[2] $fruits = array(" ", " ", "", " "); $prices = array( " " => 120, // $prices[" "] = 120 " " => 80, // $prices[" "] = 80 " " => 170); // $prices[" "] = 170 Chapter
44 $a['bar'] = "Bob"; echo " $a['bar']={$a['bar']}"; // $a['bar']=bob 3.13 $a = 1; // $b[0] = 2; // $c[0][1] = 3; // $c[0]['foo'] = 4; $d[0]['foo']['bar'] = 4; // 44 Part-1
45 <? $a = array( " " " " " " " " ), " " " " " " " " ), " " " " " " " " ) ); => array( => " ", => " ", => " " => array( => " ", => " ", => " " => array( => " ", => " ", => " " echo $a[ ][ ]; # " " 3.14 $a = "hello"; $$a = "world"; echo "$a ${$a}"; echo "$a $hello"; Chapter
46 3.15 $foo = 'Bob'; // 'Bob' $foo $bar = &$foo; // $foo $bar $bar = "My name is $bar"; // $bar... echo $foo; // $foo echo $bar; $foo = 25; $bar = &$foo; $bar = &24; // // Part-1
47 xff Chapter
48 1 2 echo CONSTANT; // "CONSTANT" 3 define("constant", "Hello world."); 4 echo CONSTANT; // "Hello world." 5 $CONSTANT = "Other world."; 6 echo $CONSTANT; // "Other world." 7 echo CONSTANT; // "Hello world." 8 echo CONSTANt; // "CONSTANt" 9 CONSTANT = "Other world."; // function foo($arg1, $arg2) { return $arg1 + $arg2; } 48 Part-1
49 /* */ function foo() { return array( 0, 1, 2 ); } list($zero, $one, $two) = foo(); 3.18 /* */ function takes_array($input) { echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } takes_array(array(1, 2)); // "1 + 2 = 3" ƒ Chapter
50 /* $bar */ function foo(&$bar) { $bar.= ' '; } $str = ' '; foo($str); echo $str; // ' ' ƒ function weather($result = " " ) { echo " $result n"; } echo weather(" "); // " " echo weather(); // " " function cook($type = " ", $what) { return "$type$what"; } echo cook(" "); // 50 Part-1
51 function cook($what, $type = " ") { return "$type$what"; } echo cook(" "); // "" echo cook(" "," "); // " " 3.19 $str="test"; // Function Test() { if (!empty($str)) return $str; // } echo Test(); // Chapter
52 $a=1; $b=2; Function Sum() { global $a,$b; return $a + $b; } echo sum(); // $a,$b // 3 Function Test() { $count=0; echo $count; $count++; } Test(); // 0 Test(); // 0 Function Test() { static $count=0; // static echo $count; $count++; } Test(); // 0 Test(); // 1 52 Part-1
53 3.20 ƒ echo "10 / 0 = ", 10 / 0, "<BR> n"; // echo "10 / 1 = ", 10 / 1, "<BR> n"; 10 / 0 = Warning: Division by zero in a.php on line 2 10 / 1 = 10 Chapter
54 ƒ printf("0x1234 & 0xff = 0x%X<BR> n", 0x1234 & 0xff); printf("0x1234 0xff = 0x%X<BR> n", 0x1234 0xff); printf("~ 0xffff = 0x%X<BR> n", (~ 0xffff) & 0xffff); 0x1234 & 0xff = 0x34 0x1234 0xff = 0x12FF ~ 0xffff = 0x0 54 Part-1
55 ƒ $a = "Hello "; $b = $a. "World!"; echo $b; // "Hello World!" ƒ $a = "ABC n"; $b =& $a; $b = "DEF n"; printf(" $a=%s n", $a); // $a=def Chapter
56 ƒ if (10==10.0): // echo "10==10.0 <BR> n"; // else: echo "10!=10.0 <BR> n"; endif; ƒ $first? $second : $third; printf("10%s10.0 n", (10==10.0)? "==" : "!="); // 10==10.0 ƒ 56 Part-1
57 ƒ $output = `ls -al`; echo "$output"; Chapter
58 Part-1
59 ƒ $visit_count = 0; IF ($visit_count==0) echo " (^O^) n"; ELSEIF ($visit_count==1) { echo " n"; echo " (^^)v n"; } ELSEIF ($visit_count>1) echo " m( )m n"; ELSE echo " (;_;)"; $visit_count = 0; IF ($visit_count==0): // : echo " (^O^) n"; ELSEIF ($visit_count==1): { echo " n"; echo " (^^)v n"; } ELSEIF ($visit_count>1): echo " m( )m n"; ELSE: echo " (;_;)"; ENDIF; // ; Chapter
60 ƒ WHILE(1) echo ' '; // srand(); // $i = rand(); // WHILE($i>0) { echo '$i n'; } $i = 0; WHILE($i<10): // : echo " $i $i <BR> n"; $i++; ENDWHILE; // ; ƒ 60 Part-1
61 $i = 0; DO { echo " 1 "; } WHILE ($i==1); ƒ FOR ($i=1, $sum=0; $i<=10; $i++) { $sum += $i; } echo " $sum = $sum"; // 55 ƒ Chapter
62 for ($i=0; $i<10; $i++) { for ($j=0; $j<10; $j++) { if ($j>1) break; // if ($i>2) break 2; // echo " $i = $i, $j = $j<br> n"; } } $i = 0, $j = 0 $i = 0, $j = 1 $i = 1, $j = 0 $i = 1, $j = 1 $i = 2, $j = 0 $i = 2, $j = 1 ƒ for ($i=0; $i<10; $i++) { if ($i%2) continue; // echo "$i, "; // ($i%2) ($i%2!= 0) } 0, 2, 4, 6, 8, ƒ 62 Part-1
63 $button = " "; // switch ($button) { case " ": print " "; break; case " ": print " "; break; case " ": print " "; break; default: print " "; } ƒ FOREACH( as $value) FOREACH( as $key => $value) $fruits = array(" ", " ", " "); foreach ($fruits as $val) { print("$val n"); } Chapter
64 $fruits = array(" " => "100", " " => "200", " " => "300"); printf(" t n"); foreach ($fruits as $key => $val) { print("$key t{$val} n"); } ƒ REQUIRE('header.inc'); ƒ 64 Part-1
65 $files = array('first.inc', 'second.inc', 'third.inc'); for ($i = 0; $i < count($files); $i++) { include($files[$i]); } 3.23 Chapter
66 class foo { var $bar; // // function foo() { // $this->bar = 10; // $this->display("foo()"); } function add() { // ++$this->bar; $this->display("add()"); } function change($val=0) { $this->bar = $val; $this->display("change()"); } } function display($func) { printf("%s: bar %d n", $func, $this->bar); } require('ex53.php'); $baz = new foo; $baz->add(); $baz->add(); $baz->change(5); $baz->change(); // // foo(): bar 10 add(): bar 11 add(): bar 12 change(): bar 5 change(): bar 0 66 Part-1
67 require('ex53.php'); // class foo2 extends foo { function foo2() { // $this->foo(); // } } function change($val=3) { $this->bar = $val * 2; // $this->display("change()"); } $baz = new foo2; $baz->add(); $baz->add(); $baz->change(5); $baz->change(); // // // // Chapter
68 foo(): bar 10 add(): bar 11 add(): bar 12 change(): bar 10 change(): bar Part-1
69 ƒ ƒ ƒ ƒ ƒ ƒ ƒ Chapter
70 Chapter -4 PHP Part-1
71 1 2 // // 4 // function display_input_area() 6 { 7 require("expand.inc"); // $yyyy,$mm,$dd 8 print <<<EOD 9 <FORM METHOD=POST ACTION="{$_SERVER['PHP_SELF']}"> <INPUT TYPE="text" NAME="yyyy" SIZE="5" VALUE="$yyyy"> 12 <INPUT TYPE="text" NAME="mm" SIZE="3" VALUE="$mm"> 13 <INPUT TYPE="text" NAME="dd" SIZE="3" VALUE="$dd"> 14 <INPUT TYPE="submit" NAME="submit" VALUE=" "> 15 <INPUT TYPE="submit" NAME="clear" VALUE=" "> 16 </FORM> 17 EOD; 18 } 19 // // 21 // function date_is_valid() 23 { 24 require("expand.inc"); // $yyyy,$mm,$dd 25 if (! ereg("^[0-9]{4}$", $yyyy)) return FALSE; 26 if (! ereg("^(0?[1-9] 1[0-2])$", $mm)) return FALSE; 27 if (! ereg("^(0?[1-9] 1[0-9] 2[0-9] 3[01])$", $dd)) return FALSE; 28 if ($dd==31) { // 29 if ($mm==2 $mm==4 $mm==6 $mm==9 $mm==11) { 30 return FALSE; 31 } 32 return TRUE; 33 } 34 if ($dd==30) { 35 if ($mm==2) { 36 return FALSE; 37 } 38 return TRUE; 39 } 40 if ($mm==2 && $dd==29) { 41 if ($yyyy % 4 == 0) { // 4 42 if ($yyyy % 100 == 0) { // if ($yyyy % 400 == 0) { // return TRUE; Chapter
72 45 } 46 return FALSE; 47 } 48 return TRUE; 49 } 50 return FALSE; 51 } 52 return TRUE; 53 } 54 // // 56 // 57 // function calc_wareki() 59 { 60 require("expand.inc"); // $yyyy,$mm,$dd 61 $border = array( 62 array(" "=> , " "=> , " "=>" "), 63 array(" "=> , " "=> , " "=>" "), 64 array(" "=> , " "=> , " "=>" "), 65 array(" "=> , " "=> , " "=>" ") 66 ); 67 $target = sprintf("%04d%02d%02d", $yyyy, $mm, $dd); 68 if ($target < $border[0][' ']) return " "; 69 for ($i=0;!empty($border[$i]); $i++) { 70 if ($border[$i][' '] <= $target && 71 $target <= $border[$i][' ']) { 72 $wareki = $yyyy - substr($border[$i][' '], 0, 4) + 1; 73 break; 74 } 75 } 76 if ($i > 3) return " "; 77 return sprintf("%s%s %d %d ", 78 $border[$i][' '], ($wareki == "1")? " " : $wareki, $mm, $dd); 79 } 80 // // 82 // session_start(); // 84 require("expand.inc"); // $yyyy,$mm,$dd 85 display_input_area(); // 86 if (!empty($_post['clear'])) { // 87 if (!empty($_session['hist'])) { 88 unset($_session['hist']); // 89 } 72 Part-1
73 90 exit; 91 } 92 if (date_is_valid()) { // 93 $wareki = calc_wareki(); // 94 $result = sprintf(" %d %d %d %s <br> n", 95 $yyyy, $mm, $dd, $wareki); 96 } else { 97 if (!empty($yyyy)!empty($mm)!empty($dd)) { 98 print("<font color=red> </font>\n"); 99 } 100 } 101 if (!empty($result)) { // 102 $hist =!empty($_session['hist'])? $_SESSION['hist'] : ""; 103 $_SESSION['hist'] = date("y/m/d H:i:s "). $result. $hist; 104 print("<table border> n<tr><td> n{$_session['hist']}</table> n"); 105 } 106 $yyyy =!empty($_post['yyyy'])? $_POST['yyyy'] : ""; $mm =!empty($_post['mm'])? $_POST['mm'] : ""; $dd =!empty($_post['dd'])? $_POST['dd'] : ""; 4.2 ƒ Chapter
74 ƒ ƒ <FORM METHOD=POST ACTION="/~hotta/1-4/test9.php"> ƒ 4.3 ƒ ƒ ƒ 74 Part-1
75 ƒ ƒ 4.4 ƒ ƒ ƒ ƒ Chapter
76 ƒ ƒ ƒ ƒ Part-1
77 4.5.2 ƒ ƒ ƒ ƒ ƒ Chapter
78 Part-1
79 PHP session.save_handler = files session.save_path = /tmp session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.gc_probability = 1 session.gc_maxlifetime = 1440 session.cache_limiter = nocache session.cache_expire = 180 Chapter
80 ~$ ls /tmp ~$ w3m -dump_head Received cookie: PHPSESSID=a037816df f0d414e430c34e4 HTTP/ OK Date: Fri, 21 Jun :17:07 GMT Server: Apache/ (Unix) (Vine/Linux) mod_ssl/2.8.9 OpenSSL/0.9.6b PHP/4.2.2 X-Powered-By: PHP/4.2.2 Set-Cookie: PHPSESSID=a037816df f0d414e430c34e4; path=/ Expires: Thu, 19 Nov :52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Content-Type: text/html ~$ ls /tmp sess_a037816df f0d414e430c34e4 80 Part-1
81 ~$ w3m -dump_source Received cookie: PHPSESSID=16ef3b34d89dc5b c56f5759c5 <FORM METHOD="POST" ACTION="/~hotta/1-4/test9.php"><input type="hidden" name="phpsessid" value="16ef3b34d89dc5b c56f5759c5" /> <INPUT TYPE="text" NAME="yyyy" SIZE="5" VALUE=""> <INPUT TYPE="text" NAME="mm" SIZE="3" VALUE=""> <INPUT TYPE="text" NAME="dd" SIZE="3" VALUE=""> <INPUT TYPE="submit" NAME="submit" VALUE=" "> <INPUT TYPE="submit" NAME="clear" VALUE=" "> Chapter
82 Chapter -5 PHP <FORM [METHOD=post get] ACTION={"URL" "mailto: "}> 82 Part-1
83 <FORM [METHOD={POST GET}] ACTION={"URL" "mailto: "}> <!-- --> <INPUT TYPE={TEXT PASSWORD} NAME= [SIZE= ] [MAXLENGTH= ] [VALUE=""] > <!-- --> <TEXTAREA NAME= [ROWS= ] [COLS= ] [WRAP={hard(physical) soft(virtual) off}]> <!-- --> <INPUT TYPE=radio NAME= VALUE= [CHECKED]> <!-- --> <INPUT TYPE=checkbox NAME= [VALUE= ] [CHECKED]> <!-- --> <INPUT TYPE=hidden NAME= VALUE= > <!-- --> <SELECT NAME= > <OPTION VALUE= 1 [SELECTED]> 1... <OPTION VALUE= n [SELECTED]> n </SELECT> <!-- --> <SELECT SIZE= NAME= > <OPTION VALUE= 1 [SELECTED]> 1... <OPTION VALUE= n [SELECTED]> n </SELECT> <!-- --> <INPUT TYPE=reset [VALUE= ]> <!-- --> <INPUT TYPE=submit [NAME= ] [VALUE= ]> </FORM> <INPUT TYPE={text password} NAME= [SIZE= ] [MAXLENGTH= ] [VALUE=""] > Chapter
84 <FORM> <INPUT TYPE=text NAME=field1 SIZE=10 VALUE=" "> </FORM> <TEXTAREA NAME= [ROWS= ] [COLS= ] [WRAP={hard(physical) soft(virtual) off}]> <form> <TEXTAREA NAME=field2 ROWS=3 COLS=30> </textarea> </form> 84 Part-1
85 5.1.4 <INPUT TYPE=radio NAME= VALUE=" " [CHECKED]> <FORM> <INPUT TYPE=radio NAME=radio1 VALUE="VAL1"> 1 <INPUT TYPE=radio NAME=radio1 VALUE="VAL2"> 2 <INPUT TYPE=radio NAME=radio1 VALUE="VAL3" CHECKED> 3 </FORM> <INPUT TYPE=checkbox NAME= [VALUE= ] [CHECKED]> <FORM> <INPUT TYPE=checkbox NAME=check[] VALUE="1" CHECKED> 1 <INPUT TYPE=checkbox NAME=check[] VALUE="2"> 2 <INPUT TYPE=checkbox NAME=check[] VALUE="3" CHECKED> 3 </FORM> Chapter
86 5.1.6 <INPUT TYPE=hidden NAME= [VALUE= ]> <FORM> <INPUT TYPE=text NAME=field1 SIZE=10 VALUE=" "><BR> <INPUT TYPE=hidden NAME=field2 VALUE=" "> </FORM> <SELECT NAME= > <OPTION VALUE= 1 [SELECTED]> 1 <OPTION VALUE= n [SELECTED]> n </SELECT> 86 Part-1
87 <FORM> <SELECT NAME=pmenu> <OPTION VALUE=SEL1> 1 <OPTION VALUE=SEL2> 2 <OPTION VALUE=SEL3 SELECTED> 3 </SELECT> </FORM> <SELECT SIZE= ( ) NAME= > <OPTION VALUE= 1 [SELECTED]> 1... <OPTION VALUE= n [SELECTED]> n </SELECT> <FORM> <SELECT SIZE=3 NAME=lbox> <OPTION VALUE=SEL1> 1 <OPTION VALUE=SEL2> 2 <OPTION VALUE=SEL3 SELECTED> 3 </SELECT> </FORM> Chapter
88 5.1.9 <INPUT TYPE=reset [VALUE= ]> <FORM> <INPUT TYPE=reset> </FORM> <INPUT TYPE=submit [NAME= ] [VALUE= ]> <FORM> <INPUT TYPE=submit> </FORM> 88 Part-1
89 <FORM ENCTYPE="multipart/form-data" ACTION="URL" METHOD=post> <INPUT TYPE=hidden NAME=MAX_FILE_SIZE VALUE=> <INPUT TYPE=file NAME= [SIZE= ]> </FORM> ƒ ƒ ƒ ƒ ƒ Chapter
90 $path="/tmp/test.out"; // if (!empty($_files['uploaded']['name'])) { echo <<<EOD $_FILES['uploaded']['tmp_name']={$_FILES['uploaded']['tmp_name']}<BR> $_FILES['uploaded']['name']={$_FILES['uploaded']['name']}<BR> $_FILES['uploaded']['size']={$_FILES['uploaded']['size']}<BR> $_FILES['uploaded']['type']={$_FILES['uploaded']['type']}<BR> EOD; if (move_uploaded_file( $_FILES['uploaded']['tmp_name'], $path) == FALSE) { printf(" %s<br> n", $_FILES['uploaded']['error']); } system("/bin/ls -l /tmp/test*"); } else { echo <<<EOD <FORM ENCTYPE="multipart/form-data" ACTION="{$_SERVER['PHP_SELF']}" METHOD=post> <INPUT TYPE=hidden name=max_file_size value= > <INPUT NAME=uploaded TYPE=file SIZE=30> <INPUT TYPE=submit VALUE= > </form> EOD; } 90 Part-1
91 $_FILES['uploaded']['tmp_name']=/tmp/phppCYShh $_FILES['uploaded']['name']=sss.tar.gz $_FILES['uploaded']['size']= $_FILES['uploaded']['type']=application/x-gzip -rw apache apache Jun 22 09:48 /tmp/test.out 5.2 URL : Chapter
92 [[ server... port... dir... file... ext... var... val HTTP Part-1
93 5.3.2 GET <URL> HTTP/ Chapter
94 94 Part-1
95 ƒ ƒ ƒ Chapter
96 ƒ ƒ ƒ ƒ ƒ ƒ 1 hotta@star ~$ telnet localhost 80[Enter] 2 Trying Connected to localhost. 4 Escape character is '^]'. 5 GET / HTTP/1.0[Enter] 6 [Enter] 7 HTTP/ OK 8 Date: Sat, 22 Jun :02:35 GMT 9 Server: Apache/ (Unix) (Vine/Linux) mod_ssl/2.8.9 OpenSSL/0.9.6b PHP/ Last-Modified: Sat, 22 Jun :01:06 GMT 11 ETag: "540cf-5-3d149132" 12 Accept-Ranges: bytes 13 Content-Length: 5 14 Connection: close 15 Content-Type: text/html TEST 18 Connection closed by foreign host. 96 Part-1
97 5.4 CGI Common Gateway Interface Chapter
98 Part-1
99 Chapter
100 100 Part-1
101 Chapter
102 102 Part-1
103 Chapter
104 104 Part-1
105 Chapter
106 106 Part-1
107 Chapter
108 Part-1
109 Chapter
110 Part-1
111 ƒ CREATE USER apache; CREATE USER hotta; ƒ CREATE DATABASE dbtest; ƒ CREATE TABLE tbltest (id int, name text); ƒ GRANT ALL ON tbltest TO apache,hotta; Chapter
112 ƒ INSERT INTO tbltest (id, name) VALUES ( 1, 'name1'); ƒ UPDATE tbltest SET (id = 2, name = 'name2'); ƒ DELETE FROM tbltest; ƒ SELECT * FROM tbltest; 112 Part-1
113 1 2 $conn = pg_connect("dbname=dbtest"); // 3 $sql = "DELETE FROM tbltest"; // 4 $result = pg_query($conn, $sql); 5 for ($i=0; $i<5; $i++) { 6 $sql = sprintf("insert INTO tbltest VALUES('%d', 'TEST%02d')", $i, $i); 7 $result = pg_query($conn, $sql); // 8 } 9 $sql = "select * FROM tbltest"; // 10 $result = pg_query($conn, $sql); 11 for ($i=0; $i<pg_num_rows($result); $i++) { 12 $rec = pg_fetch_array($result, $i); // 13 printf("%d id=%d, name=%s\n", $i+1, $rec['id'], $rec['name']); 14 } 15 pg_close($conn); // 16 hotta@star ~/public_html/1-5$ php -q 1-41.php 1 id=0, name=test00 2 id=1, name=test01 3 id=2, name=test02 4 id=3, name=test03 5 id=4, name=test04 ƒ ƒ ƒ ƒ Chapter
114 ƒ ƒ 114 Part-1
HTTP Web Web RFC2616 HTTP/1.1 Web Apache Tomcat (Servlet ) XML Xindice Tomcat 6-2
HTTP 6-1 HTTP Web Web RFC2616 HTTP/1.1 Web Apache Tomcat (Servlet ) XML Xindice Tomcat 6-2 HTTP ( ) ( ) (GET, POST ) (Host ) Tomcat Servlet Examples / Request Headers ( ) (200, 404 ) (Content-Type ) 6-3
More informationCodeIgniter Con 2011, Tokyo Japan, February
CodeIgniter Con 2011, Tokyo Japan, February 19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 http://www.iviking.org/fx.php/ 25 26 10 27 28 29 30 31
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 11 20 p.1/34 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More informationコンピュータサイエンス 4. ウェブプログラミング
4. Chris Plaintail 2014 1 / 43 1 HTML CSS 2 JavaScript DOM jquery 3 4 PHP SQL PHP SQL 2 / 43 HTML HTML CSS HTML Ajax (Asynchronous JavaScript + XML) PHP SQL 3 / 43 HTML, CSS http, https CSS HTML CSS.html
More information3 Powered by mod_perl, Apache & MySQL use Item; my $item = Item->new( id => 1, name => ' ', price => 1200,
WEB DB PRESS Vol.1 79 3 Powered by mod_perl, Apache & MySQL use Item; my $item = Item->new( id => 1, name => ' ', price => 1200, http://www.postgresql.org/http://www.jp.postgresql.org/ 80 WEB DB PRESS
More informationtkk0408nari
SQLStatement Class Sql Database SQL Structured Query Language( ) ISO JIS http://www.techscore.com/tech/sql/02_02.html Database sql Perl Java SQL ( ) create table tu_data ( id integer not null, -- id aid
More information2
storetool 2 3 4 1 storetool 1-1 6 1-2 1 7 8 1-3 1 9 1-4 10 1 11 1-5 12 1-6 1 13 14 2 storetool 2-1 16 2 17 2-2 1. 2. 3. 4. 5. 18 6. 7. 2 19 20 3 storetool 3-1-1 22 1. 3 2. 1. 2. 23 1. 2. 24 3 25 1. 2.
More informationii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web 2014 3
Web 2.0 Web Web Web Web Web Web Web I II I ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web 2014 3 1. 1.1 Web... 1 1.1.1... 3 1.1.2... 3 1.1.3... 4 1.2... 4 I 2 5 2. HTMLCSS 2.1 HTML...
More information2009 Web B012-1
2009 Web 2010 2 1 5108B012-1 1 4 1.1....................................... 4 1.2................................... 4 2 Web 5 2.1 Web............................... 5 2.2 Web.................................
More informationJavaScript の使い方
JavaScript Release10.5 JavaScript NXJ JavaScript JavaScript JavaScript 2 JavaScript JavaScript JavaScript NXJ JavaScript 1: JavaScript 2: JavaScript 3: JavaScript 4: 1 1: JavaScript JavaScript NXJ Static
More information1. URL (Uniform Resource Locator) n http://www.asahi.com:80/politics/index.html 1 2 3 4 5 1. プロトコル (http, https, ftp, mailto) 2. ドメイン 名 (FQDN) ホストの 識
サーバサイドプログラミング 1. Form 処 理 コンテンツメディアプログラミング 演 習 Ⅱ 2014 年 菊 池, 斉 藤 1. URL (Uniform Resource Locator) n http://www.asahi.com:80/politics/index.html 1 2 3 4 5 1. プロトコル (http, https, ftp, mailto) 2. ドメイン 名
More information1 1 1.......................... 1 2.......................... 2 2 5 1........................... 5 2................... 7 3..................... 8 4..
CD 1 1 1.......................... 1 2.......................... 2 2 5 1........................... 5 2................... 7 3..................... 8 4......................... 13 5 CD.................
More informationコーディング基準.PDF
Java Java Java Java.java.class 1 private public package import / //////////////////////////////////////////////////////////////////////////////// // // // // ////////////////////////////////////////////////////////////////////////////////
More informationwide94.dvi
14 WWW 397 1 NIR-TF UUCP ftp telnet ( ) WIDE Networked Information Retrieval( NIR ) vat(visual Audio Tool) nv(netvedeo) CERN WWW(World Wide Web) WIDE ISODE WIDE project WWW WWW 399 400 1994 WIDE 1 WIDE
More informationhands_on_4.PDF
PHPMySQL 4 PC LAN 2 () () SQLDBMS DBMS DataBase Management System mysql DBMS SQL Structured Query Language SQL DBMS 3 DBMS DataBase Management System B Table 3 Table 2 Table 1 a 1 a 2 a 3 A SQLStructured
More information1 1 3 1.1 Web............................ 3 1.2 Servlet/JSP.................................. 3 2 JSP 7 2.1................................... 7 2.2..
Servlet/JSP 1 1 3 1.1 Web............................ 3 1.2 Servlet/JSP.................................. 3 2 JSP 7 2.1................................... 7 2.2........................................
More information方程式を解いてみよう! C++ から PHP + JavaScriptへ
方 程 式 を 解 いてみよう! C++ から PHP + HTML + JavaScriptへ 静 岡 理 工 科 大 学 総 合 情 報 学 部 コンピュータシステム 学 科 幸 谷 智 紀 (こうや とものり) http://na-inet.jp/ 今 日 のメニュー 1. コンピュータ 環 境 と 本 日 のゴールの 確 認 2. PHPプログラムを 実 行 してみる 3. HTMLで 自
More information1" 3 3 4 5 9 15 16 17 18 20 22 22
- - 2014 8 TEL 03-4455-7453 FAX 03-6740-1754 Mail tamago-con@temona.co.jp 1" 3 3 4 5 9 15 16 17 18 20 22 22 2" 2 23 24 25 27 28 29 30 31 32 33 34 35 42 47 STEP1 3" 4" STEP2 URL URL 5" STEP3 2 STEP4 jpg
More information(1) <html>,,,,, <> ( ) (/ ) (2) <!DOCTYPE html> HTML5 (3) <html> HTML (4) <html lang= ja > html (ja) (5) JavaScript CSS (6) <meta charset= shift jis >
HTML HTML HyperText Markup Language (Markup Language) (< > ) 1 sample0.html ( ) html sample0.html // JavaScript
More informationコンピュータ概論
4.1 For Check Point 1. For 2. 4.1.1 For (For) For = To Step (Next) 4.1.1 Next 4.1.1 4.1.2 1 i 10 For Next Cells(i,1) Cells(1, 1) Cells(2, 1) Cells(10, 1) 4.1.2 50 1. 2 1 10 3. 0 360 10 sin() 4.1.2 For
More informationJavaScriptプログラミング入門
JavaScript 2015 8 15 1 2 1.1 JavaScript.................................. 2 1.2..................................... 3 1.3 if................................... 4 2 6 2.1.....................
More informationJava updated
Java 2003.07.14 updated 3 1 Java 5 1.1 Java................................. 5 1.2 Java..................................... 5 1.3 Java................................ 6 1.3.1 Java.......................
More informationWindows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2
September 2016 1 Windows Cygwin Mac *1 Emacs Ruby 1 1.1 ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 ~/16:00:20> ls 2 2 ls ls -a ~/16:00:20> ls -a
More informationコンピュータサイエンス 1. ウェブの基本
1. Chris Plaintail May 18, 2016 1 / 27 1 2 HTML HTML 3 CSS style 2 / 27 HTML HTML HTML HTML CSS HTML CSS 3 / 27 4 / 27 HTML HTML, CSS HTML, CSS http, https file CSS HTML CSS.html PC file:// PC.html 5 /
More informationCopyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved. 3 Copyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved.
2006 12 14 Copyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved. 2 Copyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved. 3 Copyright 2006 Mitsui Bussan Secure Directions,
More informationK227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
More informationオンラインテスト
1. 2. JavaScript 3. Perl 4. CGI 1. WWW HTML WWW World Wide Web HTML Hyper Text Markup Language XML, XHTML Java (.java) JavaApplet (.class,.jar) JavaServlet (.jsp) JavaScript (.html) CGI (.cgi) SSI (.shtml)
More information2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J
1 2018 4 Java 35 35 262.5 30 1 1 1,045,300 653,300 656,000 2017 12 389,300 2,700 2 946,900 554,900 290,900 101,100 1 2 Java Java Java Web Eclipse Java List Set Map StringBuilder HTML/CSS/JavaScript JSP/Servlet
More informationPage 2 of 7 <input>フォーム 部 品 フォーム<form> 内 のテキスト 入 力 や 実 行 ボタンなどの 各 フォーム 部 品 を 表 示 します 下 記 の type 属 性 の 値 によって 見 栄 えも 動 作 も 異 なる 部 品 となります type 属 性 text
Page 1 of 7 ホームページ 作 成 Note HOME HPビルダー HTML/CSS CGI/Perl ez-html WebDesign Link SiteMap HTML 入 力 フォーム WebブラウザにHTMLファイルを 表 示 させる 通 常 の 静 的 なページ に 対 し メールフォ ーム 掲 示 板 ブログなどのようにWebブラウザから 入 力 された 要 求 に 対 して
More information講 義 内 容 前 回 の 提 出 課 題 の 解 答 例 復 習 データを 送 信 するための HTML (フォーム) PHPによるフォームデータの 処 理 2
2015 年 度 Webシステムプログラミング a PHPの 基 礎 (2) 講 義 内 容 前 回 の 提 出 課 題 の 解 答 例 復 習 データを 送 信 するための HTML (フォーム) PHPによるフォームデータの 処 理 2 ( 前 回 ) 提 出 課 題 課 題 1: 1から100までの 乱 数 で 作 成 した2つの 整 数 の 足 し 算 を 表 示 するWebページを 作 成
More informationJava演習(4) -- 変数と型 --
50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends
More information簡単なHTMLファイルを作ろう
Perl CGI 1. HTML sample1.html WWW (^^) (Paragraph) (Line brake) number
More informationMicrosoft Word - PHP_SQLServer2012
PHP5.4+SQL Server 2012 1 表からデータを問い合わせる style.css table border-color:skyblue; border-style:solid; boder-widht:1px; width:300px;.hdrbackground-color:gainsboro 実行結果 1.1 ソース (Sample01.php)
More information橡5.PDF
1 FileMaker FileMaker Pro 5.5 http://www.filemaker.co.jp/downloads/index.html FileMaker Pro4.x FileMaker Pro5.x FileMaker Pro 5.x FileMaker Pro4.x fmj FileMaker Pro 5.x fp5 FileMaker Pro4.x FileMaker Pro
More informationsyspro-0405.ppt
3 4, 5 1 UNIX csh 2.1 bash X Window 2 grep l POSIX * more POSIX 3 UNIX. 4 first.sh #!bin/sh #first.sh #This file looks through all the files in the current #directory for the string yamada, and then prints
More information~モバイルを知る~ 日常生活とモバイルコンピューティング
Webプログラミングの 基 礎 PHPの 基 礎 (8) (2011/07/06) 政 策 情 報 学 部 渡 辺 恭 人 riho-m@cuc.ac.jp メーリングリスト:riho-m-rg11@cuc.ac.jp: 資 料 ページ: http://www.cuc.ac.jp/~riho-m/rg11/ 前 回 の 課 題 POSTでデータが 送 信 されているかを 確 認 送 信 されていれば
More information橡ホームページの作り方
1. 1.1. HTML Word HTML(Hyper Text Markup Language) html htm MS-WORD MS-WORD HTML HTML HTML (1.0) 1 1978 7 10 S 3
More information_IMv2.key
飯島基 文 customb2b@me.com $ ssh ladmin@im.example.com $ cd /Library/Server/Web/Data/Sites/Default/ $ git clone https://github.com/msyk/inter-mediator.git
More informationTaro php.jtdc
4-5 PHP 演習問題 演習 1 フォルダ \data\dbserver\php のPHPスクリプト randamu.php を使い, データベース testdb のテーブル table1 を取り込み, ランダムにデータを表示させるWebサーバを構築し, クライアント( Windows 側 ) のブラウザURL epc**.cen.hic.ac.jp/randamu.php を入力し, 確認する
More informationuntitled
2 1 Web 3 4 2 5 6 3 7 Internet = Inter Network 8 4 B B A B C A B C D D 9 A G D G F A B C D F D C D E F E F G H 10 5 11 Internet = Inter Network PC 12 6 1986 NSFNET 1995 1991 World Wide Web 1995 Windows95
More informationMicrosoft PowerPoint - PHP入門教材.ppt [互換モード]
PHP 入 門 コネクト 株 式 会 社 アジェンダ Webの 基 礎 知 識 開 発 環 境 PHPに 触 れてみよう PHPの 基 本 変 数 と 型 演 算 子 制 御 構 造 と 関 数 データのやりとり オブジェクト 指 向 基 礎 知 識 抽 象 クラス インターフェイス 例 外 データベース 基 礎 知 識 SQL PDO セキュリティ # 2 Webの 基 礎 知 識 これからPHPを
More informationストラドプロシージャの呼び出し方
Release10.5 Oracle DataServer Informix MS SQL NXJ SQL JDBC Java JDBC NXJ : NXJ JDBC / NXJ EXEC SQL [USING CONNECTION ] CALL [.][.] ([])
More informationohp03.dvi
19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0
More information2
Haskell ( ) kazu@iij.ad.jp 1 2 Blub Paul Graham http://practical-scheme.net/trans/beating-the-averages-j.html Blub Blub Blub Blub 3 Haskell Sebastian Sylvan http://www.haskell.org/haskellwiki/why_haskell_matters...
More information橡t15-shibuya.kashiwa.ppt
PHPLib PHPLib 1 Web Application PHPLib DB_S PostgreSQL, MySQL, Oracle, ODBC Session GET Auth Perm User 2 PHPLib local.inc Require($_PHPLIB[ libdir ]. db_mysql.inc ); db_pgsql.inc prepend.php3 Php3.ini
More informationr03.dvi
19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---
More informationuntitled
Perl2 Web2 PerlCGI Web IT2006 2 Perl Perl Perl Perl Perl Perl OS CGIWeb IT2006 4 1. FTP CD-ROM 2. IT2006 5 3. +Lhaca C: Program Files asperl C: Programs 4. IT2006 6 +Lhaca /Archives +Lhaca / local Lhaca075.EXE
More information新・明解Java入門
537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,
More information文京女子大学外国語学部
7.フォーム 7-1 フォームとは 皆 さんの 中 には ホームページを 閲 覧 していて アンケートに 答 えたり 申 込 書 のような 書 式 に 入 力 した 経 験 がある 人 もいるでしょう すなわち そのような 書 類 を 作 成 し 例 えば 電 子 メールの 形 式 であらかじめ 決 めておいたメールアドレスに 送 信 させる このような 機 能 を 持 つブロックがフ ォームタグで
More information¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°ÆÃÏÀ
2 : TCP/IP : HTTP HTTP/2 1 / 22 httpget.txt: http.rb: ruby http get Java http ( ) HttpURLConnection 2 / 22 wireshark httpget.txt httpget cookie.txt ( ) telnet telnet localhost 80 GET /index.html HTTP/1.1
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More information1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name
SQL mysql mysql ( mush, potato) % mysql -u mush -p mydb Enter password:****** mysql>show tables; usertable mysql> ( ) SQL (Query) : select < > from < > where < >; : create, drop, insert, delete,... ; (
More informationfp.gby
1 1 2 2 3 2 4 5 6 7 8 9 10 11 Haskell 12 13 Haskell 14 15 ( ) 16 ) 30 17 static 18 (IORef) 19 20 OK NG 21 Haskell (+) :: Num a => a -> a -> a sort :: Ord a => [a] -> [a] delete :: Eq a => a -> [a] -> [a]
More information10/8 Finder,, 1 1. Finder MAC OS X 2. ( ) MAC OS X Java ( ) 3. MAC OS X Java ( ) / 10
10/8 2015-10-08 URL : http://webct.kyushu-u.ac.jp, 10/8 1 / 10 10/8 Finder,, 1 1. Finder MAC OS X 2. ( ) MAC OS X Java ( ) 3. MAC OS X Java ( ) 1. 30 2 / 10 10/8 Finder 1 Figure : : Apple.com 2, 3 / 10
More informationWebデザイン論
2008 年度松山大学経営学部開講科目 情報コース特殊講義 Web デザイン論 檀裕也 (dan@cc.matsuyama-u.ac.jp) http://www.cc.matsuyama-u.ac.jp/~dan/ 出席確認 受講管理システム AMUSE を使って 本日の出席登録をせよ 学籍番号とパスワードを入力するだけでよい : http://davinci.cc.matsuyama-u.ac.jp/~dan/amuse/
More informationFor_Beginners_CAPL.indd
CAPL Vector Japan Co., Ltd. 目次 1 CAPL 03 2 CAPL 03 3 CAPL 03 4 CAPL 04 4.1 CAPL 4.2 CAPL 4.3 07 5 CAPL 08 5.1 CANoe 5.2 CANalyzer 6 CAPL 10 7 CAPL 11 7.1 CAPL 7.2 CAPL 7.3 CAPL 7.4 CAPL 16 7.5 18 8 CAPL
More information2
http: Develop Simply, Realize Conceived 1 2 3 4 5 6 7 8 9 10 11 12 13 14 tbody tr div [_im_enclosure] div [_im_repeater] span [_im_enclosure] span [_im_repeater] ol li ul li select option 15 1. Detecting
More informationJavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2
JavaScript (2) 1 JavaScript 1.! 1. 2. 3. DOM 4. 2. 3. Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2 (1) var a; a = 8; a = 3 + 4; a = 8 3; a = 8 * 2; a = 8 / 2; a = 8 % 3; 1 a++; ++a; (++
More informationWordPress Web
0948011 1 1 1.............................. 1 2 WordPress....................... 2 3........................ 3 4........................ 4 2 4 1 Web......... 4 3 5 1 WordPress...................... 5 2..........................
More informationインターネットマガジン1996年3月号―INTERNET magazine No.14
Common Gateway Interface +SSI j 164 INTERNET magazine 1996/3 INTERNET magazine 1996/3 165 Common Gateway Interface 5 2 3 1 2 3 4 1 4 j Common Gateway Interface j j j j 166 INTERNET magazine 1996/3 INTERNET
More informationHARK Designer Documentation 0.5.0 HARK support team 2013 08 13 Contents 1 3 2 5 2.1.......................................... 5 2.2.............................................. 5 2.3 1: HARK Designer.................................
More informationBlueJ 2.0.1 BlueJ 2.0.x Michael Kölling Mærsk Institute University of Southern Denmark Toin University of Yokohama Alberto Palacios Pawlovsky 17 4 4 3 1 5 1.1 BlueJ.....................................
More information1
1 2 3 4 確認しよう 今回のサンプルプログラムにアクセスしてみましょう 1. デスクトップ上のフォルダをクリックし /var/www/html に example1.html と example2.php ファイルがあることを確認します 2. ブラウザを起動し 次の URL にアクセスします http://localhost/example1.html 3. 自分の手を選択して じゃんけんぽん
More informationjavascript key
Associate Professor Department of International Social Studies KYOAI GAKUEN UNIVERSITY Email: ogashiwa@c.kyoai.ac.jp, ogashiwa@wide.ad.jp sample
More information~モバイルを知る~ 日常生活とモバイルコンピューティング
Webプログラミングの 基 礎 PHPの 基 礎 (6) ~POST (2011/06/22) 政 策 情 報 学 部 渡 辺 恭 人 riho-m@cuc.ac.jp メーリングリスト:riho-m-rg11@cuc.ac.jp: 資 料 ページ: http://www.cuc.ac.jp/~riho-m/rg11/ 入 力 された 文 字 を 受 け 取 りPOSTで 送 信 する 部 分 (post.htm)
More information~モバイルを知る~ 日常生活とモバイルコンピューティング
Webプログラミングの 基 礎 PHPの 基 礎 (7) (2011/06/29) 政 策 情 報 学 部 渡 辺 恭 人 riho-m@cuc.ac.jp メーリングリスト:riho-m-rg11@cuc.ac.jp: 資 料 ページ: http://www.cuc.ac.jp/~riho-m/rg11/ 前 回 の 課 題 おみくじのプログラムを 参 考 にして 生 まれた 年 ( 西 暦 )を
More information5110-toku4-2c.indd
Linux 4 TOMOYO Linux Linus Torvalds 1 Linux 1,200 2010 8 Linux SELinux Smack TOMOYO Linux 3 AppArmor 2010 10 2.6.36 4 SELinux Smack 1980 TOMOYO Linux AppArmor pathname-based security SELinux TOMOYO Linux
More informationBlojsom におけるクロスサイトスクリプティングの脆弱性
Japan Computer Emergency Response Team Coordination Center 電子署名者 Japan Computer Emergency Response Team Coordination Center DN c=jp, st=tokyo, l=chiyoda-ku, email=office@jpcert.or.jp, o=japan Computer
More informationlistings-ext
(6) Python (2) ( ) ohsaki@kwansei.ac.jp 5 Python (2) 1 5.1 (statement)........................... 1 5.2 (scope)......................... 11 5.3 (subroutine).................... 14 5 Python (2) Python 5.1
More informationhtml ソース <HTML> <HEAD> <META charset="cp932" /> <TITLE>MPC 通 信 サンプル</TITLE> <SCRIPT src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <SCRIP
テーマ Application Note Ref No: an2k-050 Last Modify 160428 Raspberry Pi でネットワークにアクセスする 使 用 機 器 MPC-2000 シリーズ, USB-RS,Raspberry Pi2 イメージ 名 刺 サイズのコンピュータ Raspberry Pi に Web サーバーを 乗 せて MPC の 状 態 を 取 得 変 更 します
More information1,.,,,., RDBM, SQL. OSS,, SQL,,.
1,.,,,., RDBM, SQL. OSS,, SQL,,. 3 10 10 OSS RDBMS SQL 11 10.1 OSS RDBMS............................ 11 10.1.1 PostgreSQL................................. 11 10.1.2 MySQL...................................
More informationPowerPoint プレゼンテーション
1 2 3 4 HTML 5 HTML 6 7 8 9 ( ) 10 11 ( ) Switch(state) case STATE_xxxx : int op_state = opponent.getstate(); switch (op_state) { case STATE_yyyy : < > player.setstate(state_zzzz); 12 13 14 15 16 17 request
More informationPHP と Postgresql を用いた 図書館管理システムの構築 裘彬濱 Qiu Binbin 南山大学 情報理工学部
PHP と Postgresql を用いた 図書館管理システムの構築 裘彬濱 Qiu Binbin 南山大学 情報理工学部 1: 要求分析 要求として 以下の 3 つを挙げる PHP と postgresql を用いた図書管理システムを構築したい 本の追加 削除 貸出 返却 未返却会員情報検索といった5つの機能を欲しいこの 3 つの点から データベースとウエブ 2 つの面に分けて考える [1] データベースに対する要求分析
More information情報システム設計論II ユーザインタフェース(1)
中村研究室ゼミ CGI と PHP 中村聡史 1 本日の内容 アクセスのたびに動作が変わるページの実現 CGI (Common Gateway Interface) PHP 2 3 動的なコンテンツ アクセスするたびに結果が変わったり, 問い合わせをするようなウェブページをどのようにして実現するか? ウェブ掲示板やウェブアンケート アクセスカウンター ウェブログ 検索サービスや物販サービス などなど
More informationPowerPoint プレゼンテーション
HTMLガイダンス 1 HTMLを 用 いたUI 設 定 2 色 々な 見 え 方 で 画 面 に 表 示 されるWebページ 全 て 文 字 /キャラクタで 表 現 されたデータの 集 まり HTML(Hyper Text Markup Language) パソコン 等 のインターネット 端 末 のブラウザソフトで 文 書 情 報 を 表 示 するときに 用 いられるプログラム 言 語 の 一 種
More informationWiki Wiki Wiki...
21 RDB Wiki 0830016 : : 2010 1 29 1 1 5 1.1........................................... 5 1.2 Wiki...................................... 7 1.2.1 Wiki.................... 7 1.2.2 Wiki.................. 8
More informationC G I 入 門 講 座
Apache VsftpdPerl tsuyoshi@t-ohhashi JAPET NTT Linux 1 FTP CGI VSFTP Apache Perl Perl CGI Apache CGI CGI Perl CGI CGI PHP CGI CGI 2 Windows CGI EUC Windows Windows CGI 64KB Windows CGI ( ) Windows TeraPad
More information54 5 PHP Web hellow.php 1:<?php 2: echo "Hellow, PHP!Y=n"; 3:?> echo PHP C 2: printf("hellow, PHP!Y=n"); PHP (php) $ php hellow.php Hellow, PHP! 5.1.2
53 5 PHP Web Web 1 Web OS (Web) HTML Web Web Web 5.1 PHP Web PHP ( ) 5.1.1 hellow.php ( ) Hellow, PHP! PHP hellow.php PHP HTML PHP 54 5 PHP Web hellow.php 1:
More informationデータベース認識Webサービス
Olivier Le Diouris, Oracle Corporation PL/SQL PL/SQL SOAP SOAP SOAP Web Java Java SOAP Perl Perl PL/SQL SOAP PL/SQL 1. URL 2. SOAP 1. 2. 3. 1 JSR 109 J2EE JSR 109 J2EE J2EE PL/SQL Java 2 3 JPublisher PL/SQL
More informationMicrosoft PowerPoint - 051105-2.ppt
1.Webアプリケーション 1-1 Web 1989Tim Berners-Lee 1993 1999iWindows98 2005: http://www.w3.org/people/berners-lee/ 1-2 ( ) 汎 用 機 オフコン データベース アプリケーション 言 語 (COBOLなど) 文 字 端 末 タイプライター 端 末 http://research.microsoft.com/~gbell/digital/timeline/dechistory.htm
More information2
1 2 3 4 5 6 7 8 tbody tr div [_im_enclosure] div [_im_repeater] span [_im_enclosure] span [_im_repeater] ol li ul li select option 9 10
More informationprogrammingII2019-v01
II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2
More informationLAPP/LAMP (SQL + cgi)
LAPP/LAMP (SQL + cgi) 2013 12 9 OA E-Learning Web LAMP (Linux + Apache + MySQL + PHP or Perl) LAPP (Linux + Apache + PostgreSQL + PHP or Perl) Linux OS Web Apache MySQL PostgreSQL Web cgi-bin PHP Perl
More informationSVG資料第10回目(その2) Ajaxによる同期通信と非同期通信の違い
10 ( SVG 10 ( Ajax Ajax I(SVG) 2017/6/27 10 ( Ajax 10 ( Ajax 100 10 HTML 1 2 3 4 5 6
More informationMicrosoft Word - SUGIJ2008_舟尾暢男.doc
1. 1 2. 3. 2 3 4 5 6 4. 7 3 8 9 4 5 10 5. 11 例 数 設 計 くん メニュー resizeto(450,300); var MyArray1 = new Array("2 標 本 t 検 定 "); var MyArray2 = new
More information22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Gener
22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Generator PF-Web for Constructing Web Applications. Tomohiro
More informationdvi
{ SSH { 3 3 1 telnet ID ( ) ID ( 1) SSH(Secure SHell) (ID ) SSH SSH SSH login : userid password : himitsu login : userid psaaword: himitsu login : userid password : himitsu 1. Host 11 7 UNIX ( sakura)
More information第3回_416.ppt
3 3 2010 4 IPA Web http://www.ipa.go.jp/security/awareness/vendor/programming Copyright 2010 IPA 1 3-1 3-1-1 SQL #1 3-1-2 SQL #2 3-1-3 3-1-4 3-2 3-2-1 #2 3-2-2 #1 3-2-3 HTTP 3-3 3-3-1 3-3-2 Copyright 2010
More information0
第 4 書データベース操作 i 4.1 データベースへの接続 (1) データベースチェックポイントの追加 データベースチェックポイントを追加します (2)ODBC による接続 ODBC を使用してデータベースへ接続します SQL 文を手作業で指定する場合 最大フェッチ行数を指定する場合はここで最大行数を指定します ii 接続文字列を作成します 作成ボタンクリック > データソース選択 > データベース接続
More information10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false
10 (1) 16 7 PicoPlanner validations 10.1 PicoPlanner Web Web invalid values validations Rails validates validate 107 10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #
More information●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb
" # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y " # $ % & ' ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B
More information1 1 2 2 2.1................................................ 2 2.2......................................... 2 3 Battle Ship 3 3.1......................
2013 10H071 1 1 2 2 2.1................................................ 2 2.2......................................... 2 3 Battle Ship 3 3.1............................................ 3 3.2............................................
More informationMicrosoft PowerPoint - 2015-asp-10-07-01-cgi.pptx
CGIの 作 成 プログラミング 演 習 演 習 開 始 前 の 確 認 事 項 1. パスワード 無 しでcstmsへログイン スライド 3 2. cstms 上 にウェブページを 作 成 スライド 4 3. CGI 作 業 のディレクトリを 作 る スライド 9 2 1. パスワード 無 しでcstmsへログイン 1. 順 2. $ hostname と 3. mv4b のような 端 末 名 が
More informationWEB DB PRESS Vol.1 65
http://www.fastcgi.com/ http://perl.apache.org/ 64 WEB DB PRESS Vol.1 WEB DB PRESS Vol.1 65 Powered by mod_perl, Apache & MySQL my $input; my %form; read STDIN, $input, $ENV{'CONTENT_LENGTH'}; foreach
More informationCondition DAQ condition condition 2 3 XML key value
Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................
More informationJavaScript演習
JavaScript 演習 2 1 本日の内容 prompt 関数 演習 1 演習 2 document.getelementbyid 関数 演習 3 イベント処理 基本的なフォーム テキストボックスの入力値の取得 演習 4 IE における JavaScript のデバッグ方法 1. ツール インターネットオプションメニューを実行 2. 詳細設定タブの スクリプトエラーごとに通知を表示する をチェック
More informationCAC
VOL.24NO.1 61 IMS Transaction 3270 DataBase Transaction OS/370 IMS Traditional Transaction Web Browser Transaction Internet WWW AP IIS APache WebLogic Websphere DataBase Oracle DB2 SQL Server Web Browser
More informationIntroduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for
Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that use microcontrollers (MCUs)
More information