I keep getting an error on line 43 which Is the line in which
$image_size = getimagesize($f ullsized); occurs, although I cannot seem
to find the problem. Any help is much appreciated.
Sam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Photo Gallery</title>
<script language="javas cript">
<!--
function pop(link, width, height)
{
var photoWindow = window.open(lin k, "photo", 'toolbar=0,
location=0, directories=0, status=0, menubar=0, scrollbars=1,
resizable=0, width='+width+' , height='+height );
if (window.focus) {photoWindow.fo cus()}
}
//-->
</script>
</head>
<body>
<?php
$directory = "images/imagesGallery/";
$thumbnail_dir = "images/imagesGallery/thumbs/";
$data_file = "images/imagesGallery/list.photos";
$num_rows = 3;
$photos_per_row = 2;
$photos_per_pag e = $num_rows * $photos_per_row ;
$photos =file($data_fil e);
$total_photos = count($photos);
if (!isSet($start) ) { $start = 0; }
$i = $start;
$prev_start = $start - $photos_per_pag e;
$next_start = $start + $photos_per_pag e;
print("<table>" );
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 ('[|]',
$photos[$i]);
$thumbnail = $thumbnail_dir. trim($image_nam e);
$fullsized = $directory.trim ($image_name);
$image_size = getimagesize($f ullsized);
print ("<td align=center>")
print("<p><a
href=\"javascri pt:pop('photo_d isplay.php?phot o=".$fullsized. "&&information= ".$information. "','".($image_s ize[0]+75)."','".($im age_size[1]+100)."');\">") ;
print (<"image=src\"" .$thumbnail."\" >");
print ("</a>");
$image_size = getimagesize($f ullsized); occurs, although I cannot seem
to find the problem. Any help is much appreciated.
Sam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Photo Gallery</title>
<script language="javas cript">
<!--
function pop(link, width, height)
{
var photoWindow = window.open(lin k, "photo", 'toolbar=0,
location=0, directories=0, status=0, menubar=0, scrollbars=1,
resizable=0, width='+width+' , height='+height );
if (window.focus) {photoWindow.fo cus()}
}
//-->
</script>
</head>
<body>
<?php
$directory = "images/imagesGallery/";
$thumbnail_dir = "images/imagesGallery/thumbs/";
$data_file = "images/imagesGallery/list.photos";
$num_rows = 3;
$photos_per_row = 2;
$photos_per_pag e = $num_rows * $photos_per_row ;
$photos =file($data_fil e);
$total_photos = count($photos);
if (!isSet($start) ) { $start = 0; }
$i = $start;
$prev_start = $start - $photos_per_pag e;
$next_start = $start + $photos_per_pag e;
print("<table>" );
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 ('[|]',
$photos[$i]);
$thumbnail = $thumbnail_dir. trim($image_nam e);
$fullsized = $directory.trim ($image_name);
$image_size = getimagesize($f ullsized);
print ("<td align=center>")
print("<p><a
href=\"javascri pt:pop('photo_d isplay.php?phot o=".$fullsized. "&&information= ".$information. "','".($image_s ize[0]+75)."','".($im age_size[1]+100)."');\">") ;
print (<"image=src\"" .$thumbnail."\" >");
print ("</a>");
Comment