Re: writing to file on server

From: Date: Sun, 22 Apr 2001 14:26:49 +0000
Subject: Re: writing to file on server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49748@lists.php.net to get a copy of this message
When you are using that on your site, what basically happens is that you are trying to open an FTP session with yourself. Not too efficient. So just kill off the url and use the path to your file. -- Plutarck Should be working on something... ...but forgot what it was. ""Joeri Vankelst"" <joeri.vankelst.nospam@softhome.net> wrote in message news:9bujcv$gtm$1@toye.p.sourceforge.net... > 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 >

« previous php.general (#49748) next »