RE: [PHP] fopen() for ftp
| From: | Cristian Draghici | Date: | Thu, 07 Sep 2000 21:26:30 +0000 |
| Subject: | RE: [PHP] fopen() for ftp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15780@lists.php.net to get a copy of this message | ||
>
>Update:
>I got it to work if I open it with the mode "a"... well, work in the
>sense that I'm no longer getting a "file not found" error message,
>but when it opens, the file is either empty or at EOF and I'm not
>sure why...
>Again, am I doing something wrong?
>
I would say that's normal behaviour for an inexistent file.
You tried to open it, it failed, but because you used "a" instead of "r"
your program creates the file.
that explains the file beeing empty.
I know it doesn't explain the first problem
c