【php】part29【php】
■ このスレッドは過去ログ倉庫に格納されています
0607nobodyさん
2005/10/12(水) 05:46:09ID:E+hF9erYindex.phpと同ディレクトリにあるtemplate.htmlを出力することには上手くいったのですが
変換されずにそのまま出てきてしまいました。適切な命令形式?はないでしょうか
◆index.phpの中身↓
<?php
$file = readfile ('./template.html');
$file = include('$file');
$column = '<!--column-->';
$log = '変換完了';
$file = ereg_replace('<!--column-->',$log, $file);
echo("$file");
?>
◆template.htmlの中身↓
<html lang="ja">
<head>
<title></title>
</head>
<body>
aaaaaaaaaaaaaaaaaaaa<br>
<!--column-->
</body>
</html>
■ このスレッドは過去ログ倉庫に格納されています