I am trying to create a file using php, but it fails, cannot create a file. NEED HELP. the code i am using is shown below.
$handle = fopen("/home/file.txt", "a");
fwrite($handle, "hello");
fclose ($handle);
Is it something to do with permission, or is it php , or is it apache serve??
How can i fix this problem??
I am using linux.
Thank in advcanced
cannot create file
Moderator: General Moderators
Re: cannot create file
Most likely permissions, turn on error reporting and you will be getting errors explaining why you are unable to do so.