cannot create file
Posted: Fri Mar 07, 2008 6:29 am
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
$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