file_put_contents — 文字列をファイルに書き込む
例1 シンプルな使用例
= 'people.txt';
// ファイルをオープンして既存のコンテンツを取得します
$current = file_get_contents($file);
// 新しい人物をファイルに追加します
$current .= "John Smith\n";
// 結果をファイルに書き出します
file_put_contents($file, $current);
?>
http://jp.php.net/manual/ja/function.file-put-contents.php
0 件のコメント:
コメントを投稿