I've been playing around with php a bit and now I'm trying to use the command:
[php]$filepointer = fopen("data.txt", "w");[/php]
Whenever I use this command though I get the error:
Code:
Write to a file
Warning: fopen("data.txt", "w") - Permission denied in /Users/shadybirdstan/Sites/php/ch5.1.php on line 10
Keep in mind I'm just messing around on my local machine because normally I would just call my host and ask them. Is this happenening because I need to setup write access on my local machine or something?
Any help would be GREATLY appreciated.