note 33976 deleted from function.fopen by didou

From: Date: Sat, 12 Jul 2003 17:53:46 +0000
Subject: note 33976 deleted from function.fopen by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51976@lists.php.net to get a copy of this message
Note Submitter: dave@mixd.net ---- This was a major headache for me but a very simple fix: instead of using the actual path to your file like this: $handle = fopen('http://www.yoursite.com/dir/file.txt', 'a') use the directory to your file as you see in your FTP program: $handle = fopen('/home/yoursite/www/www/dir/file.txt', 'a') Also, make sure that exact directory has public read/write permissions enabled. I believe some other people may have tried to explain what I have said above, but to a beginner it was hard to pick up.

« previous php.notes (#51976) next »