質問編集履歴
1
コードの添付
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,16 +18,36 @@
|
|
18
18
|
|
19
19
|
makefile.php
|
20
20
|
|
21
|
-
contents = file_get_contents( "template.php" );
|
22
21
|
|
23
22
|
|
23
|
+
|
24
|
+
|
25
|
+
$contents = file_get_contents( "template.php" );
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
$contents = str_replace( "<%PAGETITLE>", htmlspecialchars($pagetitle), $contents);
|
30
|
+
|
31
|
+
$handle = fopen( "hoge.html", 'w');
|
32
|
+
|
33
|
+
fwrite( $handle, $contents);
|
24
34
|
|
25
35
|
---
|
26
36
|
|
27
37
|
template.php
|
28
38
|
|
39
|
+
|
40
|
+
|
29
41
|
<?php include( dirname(__FILE__).'/header.php' ); ?>
|
30
42
|
|
31
|
-
|
43
|
+
|
32
44
|
|
33
45
|
<?php include( dirname(__FILE__).'/footer.php' ); ?>
|
46
|
+
|
47
|
+
---
|
48
|
+
|
49
|
+
header.php
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<title><%PAGETITLE></title>
|