Re: Re: File not rewritable - why? Help needed.

From: Date: Thu, 13 Feb 2003 10:50:02 +0000
Subject: Re: Re: File not rewritable - why? Help needed.
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-135405@lists.php.net to get a copy of this message
If the file does not exists, the web server needs write priviledge to the directory where you want to create it. Paul Dunkel wrote:
Marek Kilimajer wrote:
use chmod 755 directory on each directory that is in the way to your file
I tried that, too. Didn't help. Here is the code, stripped to the original, straight from the tutorial. And I can't get it work. What's wrong here? $somecontent = 'PERKELE\n'; $filename = 'teksti.txt'; $handle = fopen($filename, 'wb'); fwrite($handle, $somecontent); fclose($handle); I've tried this in two totally different servers, tomorrow I'll try on the third one. All help absolutely welcome! Paul Dunkel -- pdunkel.nic.fi


« previous php.general (#135405) next »