Hi...
I have a problem in my dedicated server...
when i want writing to file I have permission error...
this is my code (for example):
$file_content =
"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
";
$input_file = dirname(__FILE__)."/../test.html";
$handle = fopen($input_file,"w");
fwrite($handle,$file_content);
fclose($handle);
and I have this error :
Warning: fopen(/home/irpna02/public_html/temp/../test.html): failed to open stream: Permission denied in /home/irpna02/public_html/temp/test.php on line 18
Warning: fwrite(): supplied argument is not a valid stream resource in /home/irpna02/public_html/temp/test.php on line 20
Warning: fclose(): supplied argument is not a valid stream resource in /home/irpna02/public_html/temp/test.php on line 22
please help me....i am confused....
is it probably suPHP problem ?