|
Posted by Lucid77 on 04/16/06 06:03
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.
Sam
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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="javascript">
<!--
function pop(link, width, height)
{
var photoWindow = window.open(link, "photo", 'toolbar=0,
location=0, directories=0, status=0, menubar=0, scrollbars=1,
resizable=0, width='+width+', height='+height);
if (window.focus) {photoWindow.focus()}
}
//-->
</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_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;
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_name);
$fullsized = $directory.trim($image_name);
$image_size = getimagesize($fullsized);
print ("<td align=center>")
print("<p><a
href=\"javascript:pop('photo_display.php?photo=".$fullsized."&&information=".$information."','".($image_size[0]+75)."','".($image_size[1]+100)."');\">");
print (<"image=src\"".$thumbnail."\">");
print ("</a>");
[Back to original message]
|