php3-list | 2000051
Date: 05/16/00
- Next message: idban secandri: "Re: [PHP3] to nathan"
- Previous message: idban secandri: "Re: [PHP3] Damn it !!!!"
- In reply to: Marian Vasile: "[PHP3] No one want's to really help me !!! and is so easy..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I answered your question twice. You can't append to a remote file. When
you do the "a+" on the first write it creates the file, but on the second
it is already there and thus tries to do an append which you can't do.
Besides, you are probably completely confused here. Your PHP script runs
on a web server. When people enter data in their browser and POST a form,
this data is posted to that web server. To save this data simply open a
file locally.
eg.
$fp = fopen("/tmp/test.txt","a+");
...
Since PHP is a server-side language, the term 'locally' means local to the
PHP script and since the PHP script is running on the server this file
will be created on the server the PHP script is running on.
-Rasmus
On Tue, 16 May 2000, Marian Vasile wrote:
> I want to write some data from a formular in a file.
> Till now there are two possibilities to do this:
> 1. To write to a remote file... but it's really not working.
> I mean it's not working the second time...
> example can be seen at: www.phpeditor.f2s.com
>
> 2. Second option that I don't know of... how can write all the data to a
> "local" file ? is that possible ?
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: idban secandri: "Re: [PHP3] to nathan"
- Previous message: idban secandri: "Re: [PHP3] Damn it !!!!"
- In reply to: Marian Vasile: "[PHP3] No one want's to really help me !!! and is so easy..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

