RE: RE: [PHP] Updated (appending) a file

From: Date: Tue, 02 Jul 2002 05:18:20 +0000
Subject: RE: RE: [PHP] Updated (appending) a file
Groups: php.general 
Request: Send a blank email to php-general+get-104839@lists.php.net to get a copy of this message
Um - yeah - sorta depends if the script has write access to the directory too :) but try and see, I guess is the best option ... -----Original Message----- From: Chris Earle [mailto:chris@earleweb.com] Sent: Tuesday, July 02, 2002 4:14 PM To: php-general@lists.php.net Subject: Re: RE: [PHP] Updated (appending) a file Permission denied Yep. Crap. If I let PHP create the file (delete the files as they exist now), that will give it permission (because it will have made them), right? Thanks a lot for all the help. "Martin Towell" <martin.towell@world.net> wrote in message news:6416776FCC55D511BC4E0090274EFEF508A58B@EXCHANGE... > This should work > > error_reporting(E_ALL); > > but be prepared for all dem warnings ! :) > > > > BTW: I get an undeliverable mail to your email address when I "reply to all" > :( > > -----Original Message----- > From: Chris Earle [mailto:chris@earleweb.com] > Sent: Tuesday, July 02, 2002 4:04 PM > To: php-general@lists.php.net > Subject: Re: RE: [PHP] Updated (appending) a file > > > The server has error reporting turned off (can I change this even though I'm > not there?)... > > I cannot do it with the file in my base folder either. > > "Martin Towell" <martin.towell@world.net> wrote in message > news:6416776FCC55D511BC4E0090274EFEF508A58A@EXCHANGE... > > maybe a permissions thing? > > > > do you get any errors back? if so, what error is it? > > > > try appending to a file in the same directory as index.php and see how > that > > goes. > > > > -----Original Message----- > > From: Chris Earle [mailto:chris@earleweb.com] > > Sent: Tuesday, July 02, 2002 3:54 PM > > To: php-general@lists.php.net > > Subject: RE: RE: [PHP] Updated (appending) a file > > > > More to the point: if that relative path doesn't work, and the path is > right > > and the file does exist, what does that mean? > > > > -- if the php file is: mydomain.com/index.php > > -- and the data file is: mydomain.com/files/Names.txt > > -- > > -- then the relative path is not "\\files\\Names.txt" , it's > > -- "files\\Names.txt" > > -- > > -- HTH > > -- Martin

« previous php.general (#104839) next »