I think the way to open and show a file is:
<?php
$src=ImageCreateFromJPEG('photo33.jpg');
imagejpeg($src);
?>
but it does not work:
PHP Warning: imagecreatefromjpeg(photo33.jpg): failed to open stream: Permission denied in /Users/anne/Sites/sortdata/test2.php on line 2
(the line with ImageCreateFromJPEG)
this on mac OS 10.3.4
I set test2.php to be a readwrite file from anywhere just in case that is the problem.
theHTML equivalent with a gif file in the same directory.
<IMG SRC="photo33.gif">
and that works fine.
Any suggestion about what I am doing wrong?
JPEG is supported in this version of php 4.3.6