Help can anyone see why I am getting this error message in the following code?
$fd = fopen ($old_file, "r");
$contents = fread ($fd, filesize ($old_file));
fclose ($fd);
$fd = fopen ($full_new_file, "w");
fwrite($fd,$contents,filesize ($old_file));
fclose ($fd);
unset($contents);