[PHP-users 2394] Re: fwrite()でファイルを作成できません

Masashi Ohba php-users@php.gr.jp
Tue, 02 Oct 2001 17:40:18 +0900


大場です。

t-matsuzaki@pi.jp.nec.com wrote;

>php+PostgrSQLを使用して、掲示板を作成しようとしています。
>投稿内容をテキスト形式のファイルで保存したいのですがうまくいきません。

なんでPostgreSQLにデータとして取りこまないでしょう?


>$fp = fopen ("http://xxxx/php/comment/$msg_no","w");
>fwrite($fp, $comment);
>fclose($fp);
>
>と言う様なプログラムを作成してみたのですが、
>
>Warning: fopen("http://xxxx/php/comment/2","wb") - 成功です in /****/php/bbs_entry2.php3 on line 28
>Warning: Unable to find file identifier 0 in /****/bbs_entry2.php3 on line 29


その28行目と29行目付近の処理がどうなっているのか
なぜ書いてないんでしょう?

------------------------------------------------------------
大場正志(Masashi Ohba)
E-Mail  ohba@intelight.co.jp
(株) インテライト
http://www.intelight.co.jp
------------------------------------------------------------