Msg#: 4000719 posted 2:53 am on Oct 4, 2009 (gmt 0)
i get this error Warning: imagecreatefromjpeg(testpicture.jpeg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in ..... on line 27
using php 5+ gd 2+ is enabled
<div align="center">Click on an image to view it in a separate window.</div><br /> <table align="center" cellspacing="5" cellpadding="5" border="1"> <tr> <td align="center"><b>Image</b></td> <td align="center"><b>Image Name</b></td> <td align="center"><b>Image Size</b></td> </tr> <?php # images.php
>>>line 27>>> $display = imagecreatefromjpeg($image); // Read all the images into an array.
The first thing I'm seeing is you're requesting the information for the image size and file size and actual image from two different locations...
$image_size and $file_size come from here: $dir/$image $display comes from here: $image (no $dir included.)
My guess is it's a path issue, and $dir/$image will probably correct it since the other's are getting you the information...
$display = imagecreatefromjpeg($dir/$image);
If not, double check on the path you are using to the actual image. I would definitely use a server relative path (/begins-with-a/slash) rather than directory relative (does-not-begin-with-a/slash) since you are using a pop-up.