[eluser]SidharthaXx[/eluser]
Hi All,
I'm trying to create an attachment file in my controller, very simple test code as below,
function create_vcal() {
$ourFileName = "/home/robbiedb/Downloads/bobber.ics";
echo "got here";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
$stringData = "Bobby Bopper\n";
fwrite($ourFileHandle, $stringData);
fclose($ourFileHandle);
}
Anyway, I'm getting an error "failed to open stream: Permission denied". This suprises me, since I'm trying to access my local hard drive under my user "robbiedb"...
Anyone know why I might be getting this error?
Thanks