getimagesize:read error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I keep getting an error on line 43 which Is the line in which
$image_size = getimagesize($fullsized); occurs, although I cannot seem
to find the problem. Any help is much appreciated.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
" ">
<html xmlns=" ">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
<title>Photo Gallery</title>
<script language="javascript">
function pop(link, width, height)
    var photoWindow =, "photo", 'toolbar=0,
location=0, directories=0, status=0, menubar=0, scrollbars=1,
resizable=0, width='+width+', height='+height);
    if (window.focus)


$directory = "images/imagesGallery/";
$thumbnail_dir = "images/imagesGallery/thumbs/";
$data_file = "images/imagesGallery/";
$num_rows = 3;
$photos_per_row = 2;
$photos_per_page = $num_rows * $photos_per_row;

$photos =file($data_file);
$total_photos = count($photos);

if (!isSet($start)) { $start = 0; }
$i = $start;
$prev_start = $start - $photos_per_page;
$next_start = $start + $photos_per_page;

for ($row=0; $row < $num_rows; $row++) {
  print ("<tr>");
  for ($col=0; $col < $photos_per_row; $col++){
  if ($1 < $total_photos) {
  list ($image_name, $title, $information) = split ('[|]',
  $thumbnail = $thumbnail_dir.trim($image_name);
  $fullsized = $directory.trim($image_name);
  $image_size = getimagesize($fullsized);

  print ("<td align=center>")

    print (<"image=src\"".$thumbnail."\">");
    print ("</a>");

Re: getimagesize:read error

Lucid77 wrote:
Quoted text here. Click to load it
Is the folder CHMOD'd correctly?  Check the permissions.

Carl Vondrick
To contact me, please use my website.

Site Timeline