Hi I try to resiz images with GD library but the functions of the library cannot find the file to read when I use an upper dir (a path starting with ../ ). But the functions can write to upper dirs.
everything is ok when I use directories under the code level.
What is the problem?
these paths are ok, everything works fine:
$image_to_resize="img/original/image.jpg";
$image_display_path="img/fotolar/image.jpg";
$image_thumb_path="img/thumbs/image.jpg";
But these are not:
$image_to_resize="../img/original/image.jpg";
$image_display_path="../img/fotolar/image.jpg";
$image_thumb_path="../img/thumbs/image.jpg";
these errors occure
Warning: imagesx(): supplied argument is not a valid Image resource in ......
Warning: imagesy(): supplied argument is not a valid Image resource in ........
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in .....
Warning: imagedestroy(): supplied argument is not a valid Image resource in .....