I just started to experiment with php scripting, and whenever i try to access an image file or directory, i get errors. Like this code:
for ($row=0; $row < $num_rows; $row++){
print("<tr>\n");
for ($col=0; $col < $photos_per_row; $col++){
if($i < $total_photos){
$thumbnail = $thumbnail_dir.trim($photos[$i]);
$thumb_image_size = getimagesize($thumbnail);
$image_size = getimagesize(trim($photos[$i]));
print("<td align=\"center\"><
a href=\"javascript:photo_open('photo_display.php?photo=
".trim($photos[$i])."','".$image_size[0]."','
".$image_size[1]."');\"><img src=\"".$thumbnail.
"\" ".$thumb_image_size[3]."></a></td>\n");
} else {
print("<td></td>\n");
}
$i++;
}
print("</tr>\n");
}
i always get errors that say "cannot access file" or "permission denied to access file". i read elsewhere that there is some permissions set on files (?) that i have to chmod 777... i dont think thats the problem...
is there some read/write restriction setting in apache or php? its not the files that are restricted, thats for sure...
oh yeah, im running win2k
thanks for any help!