Posts: 77
Name: Daniel
Location: Stony Point , Noth Carolina
|
OK ,
Here is another error. Can someone please explain to me what exsactly this means.
I'm learing to write data to files.
Here is my code.
PHP Code:
<?php $newfile = fopen("C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mydata.txt", "a+"); fwrite($newfile, "This is a new file."); fclose($newfile); echo "All done!"; ?>
Here is the output to my browser:
Warning: fopen(C:\Program Files\Apache Group\Apache2\htdocs) [function.fopen]: failed to open stream: Permission denied in C:\Program Files\Apache Group\Apache2\htdocs\write_data.php on line 2
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\write_data.php on line 3
Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\Apache Group\Apache2\htdocs\write_data.php on line 4
All done!
Last edited by daddy2five : 04-16-2006 at 11:26 PM.
|