Re: fwrite not working in php3

From: Date: Thu, 17 Jul 2003 06:05:18 +0000
Subject: Re: fwrite not working in php3
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155542@lists.php.net to get a copy of this message
daniel@electroteque.org <daniel@electroteque.org> wrote: > hi there i have a little problem writing files on a php3 server this code > worked yesterday but isnt > > $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); Test your $handle to see if you successfully opened the file. if (! $handle) { // check permissions die('croak: can't open the file'); } > $buffer = "test"; > echo fwrite($handle,$buffer,4000); > fclose($handle); > > i get a filesize of 0 and nothing writes to it what could it be ? > > >

« previous php.general (#155542) next »