Re: Problem appending data in a file with fopen("ftp://...","a")
| From: | Kurt Lieber | Date: | Mon, 29 Oct 2001 03:21:13 +0000 |
| Subject: | Re: Problem appending data in a file with fopen("ftp://...","a") | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72671@lists.php.net to get a copy of this message | ||
On Sunday 28 October 2001 06:41 pm, you wrote:
> Is it possible to solve this problem or it's a feature in PHP?
If I understand your problem, you are trying to open the same file twice.
I'm not sure why you would want to do that, but assuming you have a good
reason, you need to make sure you fclose($filename) before you try to
fopen($filename) again. Otherwise, PHP maintains the file open for reading
(and writing, if that's how you opened it.)
hth
--kurt