|
Hi everyone,
i am trying desperatelly to create new file using fopen() function, but all the time getting permission error:
failed to open stream: Permission denied ....
situation is like this:
<?php
$file=fopen("directory/file.html","wt");
......
?>
script that is creating file is, as you may see, in parent folder of folder where i am trying to open file.
Folder "directory" is chmoded to 777.
If i try to create new file in same folder where script reside, it works. But i need to create it in subfolder. And NEW file must be created.
Any idea?
Thanks!
|