質問するログイン新規登録

質問編集履歴

1

phpソースを書き直しました。

2019/09/06 10:34

投稿

daichi-onoue
daichi-onoue

スコア53

title CHANGED
File without changes
body CHANGED
@@ -26,106 +26,97 @@
26
26
  <?php
27
27
  $arr = array(
28
28
  '46.txt'=>['name'=>'inp_01','disp'=>'クーピー
29
- <?php
30
29
  $fp = fopen("23.txt", "r"); while ($line = fgets($fp)) {
31
30
  echo "$line<br />"; }
32
- fclose($fp); ?>'],
31
+ fclose($fp);'],
33
- '47.txt'=>['name'=>'inp_02','disp'=>'クレヨン<?php
32
+ '47.txt'=>['name'=>'inp_02','disp'=>'クレヨン
34
33
  $fp = fopen("24.txt", "r"); while ($line = fgets($fp)) {
35
34
  echo "$line<br />"; }
36
- fclose($fp); ?>'],
35
+ fclose($fp);'],
37
- '48.txt'=>['name'=>'inp_03','disp'=>'マジックペン(大、油性)<?php
36
+ '48.txt'=>['name'=>'inp_03','disp'=>'マジックペン(大、油性)
38
37
  $fp = fopen("24.txt", "r"); while ($line = fgets($fp)) {
39
38
  echo "$line<br />"; }
40
- fclose($fp); ?>'],
39
+ fclose($fp);'],
41
- '49.txt'=>['name'=>'inp_04','disp'=>'マジックペン(小、油性)<?php
40
+ '49.txt'=>['name'=>'inp_04','disp'=>'マジックペン(小、油性)
42
41
  $fp = fopen("25.txt", "r"); while ($line = fgets($fp)) {
43
42
  echo "$line<br />"; }
44
- fclose($fp); ?>'],
43
+ fclose($fp);'],
45
- '50.txt'=>['name'=>'inp_05','disp'=>'マジックペン(水性)<?php
44
+ '50.txt'=>['name'=>'inp_05','disp'=>'マジックペン(水性)
46
45
  $fp = fopen("26.txt", "r"); while ($line = fgets($fp)) {
47
46
  echo "$line<br />"; }
48
- fclose($fp); ?>'],
47
+ fclose($fp); '],
49
48
  '51.txt'=>['name'=>'inp_06','disp'=>'マイネーム
50
- <?php
51
49
  $fp = fopen("27.txt", "r"); while ($line = fgets($fp)) {
52
50
  echo "$line<br />"; }
53
- fclose($fp); ?>'],
51
+ fclose($fp); '],
54
- '52.txt'=>['name'=>'inp_07','disp'=>'カッター<?php
52
+ '52.txt'=>['name'=>'inp_07','disp'=>'カッター
55
53
  $fp = fopen("28.txt", "r"); while ($line = fgets($fp)) {
56
54
  echo "$line<br />"; }
57
- fclose($fp); ?>'],
55
+ fclose($fp); '],
58
- '53.txt'=>['name'=>'inp_08','disp'=>'ハサミ<?php
56
+ '53.txt'=>['name'=>'inp_08','disp'=>'ハサミ
59
57
  $fp = fopen("29.txt", "r"); while ($line = fgets($fp)) {
60
58
  echo "$line<br />"; }
61
- fclose($fp); ?>'],
59
+ fclose($fp); '],
62
60
  '54.txt'=>['name'=>'inp_09','disp'=>'水のり
63
- <?php
64
61
  $fp = fopen("30.txt", "r"); while ($line = fgets($fp)) {
65
62
  echo "$line<br />"; }
66
- fclose($fp); ?>'],
63
+ fclose($fp); '],
67
- '55.txt'=>['name'=>'inp_10','disp'=>'ボンド<?php
64
+ '55.txt'=>['name'=>'inp_10','disp'=>'ボンド
68
65
  $fp = fopen("31.txt", "r"); while ($line = fgets($fp)) {
69
66
  echo "$line<br />"; }
70
- fclose($fp); ?>'],
67
+ fclose($fp); '],
71
- '56.txt'=>['name'=>'inp_11','disp'=>'折り紙<?php
68
+ '56.txt'=>['name'=>'inp_11','disp'=>'折り紙
72
69
  $fp = fopen("32.txt", "r"); while ($line = fgets($fp)) {
73
70
  echo "$line<br />"; }
74
- fclose($fp); ?>'],
71
+ fclose($fp); '],
75
72
  '57.txt'=>['name'=>'inp_12','disp'=>'かつら
76
- <?php
77
73
  $fp = fopen("33.txt", "r"); while ($line = fgets($fp)) {
78
74
  echo "$line<br />"; }
79
- fclose($fp); ?>'],
75
+ fclose($fp);'],
80
- '58.txt'=>['name'=>'inp_13','disp'=>'ラミネーター<?php
76
+ '58.txt'=>['name'=>'inp_13','disp'=>'ラミネーター
81
77
  $fp = fopen("34.txt", "r"); while ($line = fgets($fp)) {
82
78
  echo "$line<br />"; }
83
- fclose($fp); ?>'],
79
+ fclose($fp); '],
84
80
  '59.txt'=>['name'=>'inp_14','disp'=>'ビデオカメラ
85
- <?php
86
81
  $fp = fopen("35.txt", "r"); while ($line = fgets($fp)) {
87
82
  echo "$line<br />"; }
88
- fclose($fp); ?>'],
83
+ fclose($fp); '],
89
- '60.txt'=>['name'=>'inp_15','disp'=>'ガムテープ<?php
84
+ '60.txt'=>['name'=>'inp_15','disp'=>'ガムテープ
90
85
  $fp = fopen("36.txt", "r"); while ($line = fgets($fp)) {
91
86
  echo "$line<br />"; }
92
- fclose($fp); ?>'],
87
+ fclose($fp); '],
93
- '61.txt'=>['name'=>'inp_16','disp'=>'布テープ<?php
88
+ '61.txt'=>['name'=>'inp_16','disp'=>'布テープ
94
89
  $fp = fopen("37.txt", "r"); while ($line = fgets($fp)) {
95
90
  echo "$line<br />"; }
96
- fclose($fp); ?>'],
91
+ fclose($fp); '],
97
- '62.txt'=>['name'=>'inp_17','disp'=>'スズランテープ(白)<?php
92
+ '62.txt'=>['name'=>'inp_17','disp'=>'スズランテープ(白)
98
93
  $fp = fopen("38.txt", "r"); while ($line = fgets($fp)) {
99
94
  echo "$line<br />"; }
100
- fclose($fp); ?>'],
95
+ fclose($fp); '],
101
96
  '63.txt'=>['name'=>'inp_18','disp'=>'スズランテープ(赤)
102
- <?php
103
97
  $fp = fopen("38.txt", "r"); while ($line = fgets($fp)) {
104
98
  echo "$line<br />"; }
105
- fclose($fp); ?>'],
99
+ fclose($fp); '],
106
- '64.txt'=>['name'=>'inp_19','disp'=>'スズランテープ(黄)<?php
100
+ '64.txt'=>['name'=>'inp_19','disp'=>'スズランテープ(黄)
107
101
  $fp = fopen("39.txt", "r"); while ($line = fgets($fp)) {
108
102
  echo "$line<br />"; }
109
- fclose($fp); ?>'],
103
+ fclose($fp); '],
110
- '65.txt'=>['name'=>'inp_20','disp'=>'スズランテープ(緑)<?php
104
+ '65.txt'=>['name'=>'inp_20','disp'=>'スズランテープ(緑)
111
105
  $fp = fopen("40.txt", "r"); while ($line = fgets($fp)) {
112
106
  echo "$line<br />"; }
113
- fclose($fp); ?>'],
107
+ fclose($fp); '],
114
108
  '66.txt'=>['name'=>'inp_21','disp'=>'スズランテープ(青)
115
- <?php
116
109
  $fp = fopen("41.txt", "r"); while ($line = fgets($fp)) {
117
110
  echo "$line<br />"; }
118
- fclose($fp); ?>'],
111
+ fclose($fp); '],
119
112
  '67.txt'=>['name'=>'inp_22','disp'=>'スズランテープ(紫)
120
- <?php
121
113
  $fp = fopen("42.txt", "r"); while ($line = fgets($fp)) {
122
114
  echo "$line<br />"; }
123
- fclose($fp); ?>'],
115
+ fclose($fp); '],
124
116
  '68.txt'=>['name'=>'inp_23','disp'=>'養生テープ
125
- <?php
126
117
  $fp = fopen("43.txt", "r"); while ($line = fgets($fp)) {
127
118
  echo "$line<br />"; }
128
- fclose($fp); ?>'],
119
+ fclose($fp); '],
129
120
  );
130
121
  $msg = array();
131
122
  if ($_POST) {