I am using PHP on my IIS server.
I am trying to write to a file using PHP in a file at http://localweb/local/Management/testfile.php
. I want it to write to an exsiting file:-
testfile.php contains the following attached code snippet.
I have set the open_basedir in PHP.INI and phpinfo reports it to be:-
I am getting the error message:-
test.txt) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\Local\H
tfile.php on line 4"
I have tried various combinations of paths etc and none of the give me any joy.
Can anyone suggest how I get this working, or what I am doing wrong?
$filename = "Files\\Registrations\\test.txt";
$newdata = "test data";