I am having trouble with djpeg, it does not seem to have permission to write to a dir i specify. How do i make sure it has such a permission. I think there might be a bug since it was working dec 31 and before and now it is not. Somehoe DJPEG is dying and not writing that file, anyone that can help it would be MUCH appreciated.
Has anyone encountered anything like this
The code i am using looks like this
//Get latest entry in order to
$idqueryresult = mysql_fetch_row (mysql_query ("SELECT LAST_INSERT_ID()", $mysql_link));
$currentid = $idqueryresult[0];
copy ("$gallery", "./photographs/gallery/$currentid.jpg");
//converting it to pnm
system ("djpeg ./photographs/gallery/$currentid.jpg >./photographs/gallery/$currentid.pnm");
//scaling the pnmfile
system("pnmscale -xy 120 120 ./photographs/gallery/$currentid.pnm | cjpeg -smoo 10 -qual 50 > ./photographs/thumbnail/$currentid.jpg");
system("rm ./photographs/gallery/$currentid.pnm -f");
if($printable != "none")
{
copy ("$printable", "/photographs/printable/$idqueryresult[0].jpg");
}
?>