Hi Experts, I'm trying to write to a local disk using fwrite function but the script died. There's folder write/modify/total control permission to everyone.
$inputFilename = "image.jpg";
$outputFilename = "c:\teste\image.jpg";
$finput = fopen($inputFilename, "rb") or die ("can't open file for read");
$foutput = fopen($outputFilename, "wb") or die ("can't open file for write");
$contents = fread($finput, $buflen);
returns: "can't open file for write"
Thanks in advance