個人Webページ自動生成システム(3)
fclose
gt
lt
nbsp
単一ページの生成、ファイル名: shengcheng.php
?php
$db = mysql_connect("localhost", "root");
mysql_select_db("study",$db);// 記事をデータベースに書き込みます
$t = date("Y-m-d h:i:s");
$sql = "INSERT INTO wenzhang (timu,zuozhe,laiyuan,textt,riqi)
VALUES ('$timu','$ zuozhe ','$laiyuan','$textt','$t')";
$result = mysql_query($sql);
// カウンタを 1 つ増やします
$fdd=fopen( "カウント .txt","r");
$cdd=fread($fdd,5);
fclose($fdd); .txt ","w");
fwrite($fdd,$cdd);
fclose($fdd);
// 記事生成
$muoban1 = fopen("muoban1.txt" ," r");
$muoban2 = fopen("muoban2.txt","r");
$muoban3 = fopen("muoban3.txt","r"); "< ;p><表幅="75%" border="0" align="center">
p>";
$muoban4=fread($muoban1,1000);
$muoban5=fread($muoban2) ,1000);
$muoban6=fread($muoban1);
fclose($muoban3); ="$muoban4 $timu $qita $muoban5 $textt $muoban6";
// 記事生成
$cdd.$ttt; f = fopen($n,"a");
fwrite($f,$main );
print "正常に送信されました
?>
;送信を続ける ファイルを管理 /body>
?php
$db = mysql_connect("localhost", "root");
mysql_select_db("study",$db);// 記事をデータベースに書き込みます
$t = date("Y-m-d h:i:s");
$sql = "INSERT INTO wenzhang (timu,zuozhe,laiyuan,textt,riqi)
VALUES ('$timu','$ zuozhe ','$laiyuan','$textt','$t')";
$result = mysql_query($sql);
// カウンタを 1 つ増やします
$fdd=fopen( "カウント .txt","r");
$cdd=fread($fdd,5);
fclose($fdd); .txt ","w");
fwrite($fdd,$cdd);
fclose($fdd);
// 記事生成
$muoban1 = fopen("muoban1.txt" ," r");
$muoban2 = fopen("muoban2.txt","r");
$muoban3 = fopen("muoban3.txt","r"); "< ;p><表幅="75%" border="0" align="center">
作成者:$zuozhe 出典: $laiyuan color="#336600">$t
p>";
$muoban4=fread($muoban1,1000);
$muoban5=fread($muoban2) ,1000);
$muoban6=fread($muoban1);
fclose($muoban3); ="$muoban4 $timu $qita $muoban5 $textt $muoban6";
// 記事生成
$cdd.$ttt; f = fopen($n,"a");
fwrite($f,$main );
print "
?>
gt;