Re: writing to file on server
| From: | chris herring | Date: | Sun, 22 Apr 2001 13:31:14 +0000 |
| Subject: | Re: writing to file on server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49743@lists.php.net to get a copy of this message | ||
unless that file you're writing to is on a different server, just put the
relative location to the file. ie: ./guestbook.txt
if this doesn't work I have nothing to offer you. :-\
----- Original Message -----
From: "Joeri Vankelst" <joeri.vankelst.nospam@softhome.net>
To: <php-general@lists.php.net>
Sent: Sunday, April 22, 2001 7:43 AM
Subject: [PHP] writing to file on server
> Hi,
>
> I've just started working with PHP. I've made a guest book using PHP
> (nothing spectacular) that worked just fine when I tested it op my pc, but
> when I uploaded it, it stopped working.
> My specific problem is that I cannot write to a file that already exists
and
> contains data. When I try to I get these warnings:
>
> Warning: File already exists
> Warning:
> fopen("ftp://...@ftp.myhost.com/guestbook.txt","a")
> - File
> exists
>
> Is this problem related to the FTP fopen? And is there a way to correct
this
> problem?
>
> Tnx!
> Joeri Vankelst
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net