introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

fopen/fwrite not working



Posted by: twinbee
March 01, 2008 03:37AM
Hi there,

I am at a loss as how to save a simple file on
my local HD using EasyPHP (it works on my web site's PHP).

<?php
$fw = fopen("file.txt","w");
fwrite($fw,"test");
fclose($fw);
?>

Couldn't get simpler, but file.txt isn't written to the HD.

Any ideas what's happened? It used to work in EasyPHP 1.8
but stopped working in 2.0.

Cheers, Dan
Options: ReplyQuote
Posted by: Thierry
March 01, 2008 02:47PM
check ACL for your folder (maybe Apache don't heve rights to write)
Options: ReplyQuote
Posted by: twinbee
March 03, 2008 04:42AM
Where do I find "ACL"?

I've scanned the PHP and Apache config files, but nothing comes up...
Options: ReplyQuote
Posted by: Thierry
March 04, 2008 10:09AM
ACL deal with windows security. if you're using NTFS check the user running apache have rights on www directory and his children.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.