I’ve got a basic product gallery, populated by reading a directory. Clicking a thumb gives you a larger image in a pop-up. The script I’m using for the pop-up is this:
[code=php]
<html>
<head>
<title><?PHP print($photo); ?></title>
<link rel=”stylesheet” type=”text/css” href=”../assets/css/global.css”>
</head>
<?PHP
$photo_size = getimagesize(“$photo”);
?>
<body bgcolor=”#FFFFFF” marginheight=”0″
marginwidth=”0″ leftmargin=”0″ topmargin=”0″
rightmargin=”0″>
<div align=”center”>
<img border=”0″ src=”<?PHP print($photo); ?>” <?PHP print($photo_size[3]); ?> name=”photo”>
<br>
<br>
<a class=”prodLInk” href=”javascript:window.close()”>lukke</a>
</div>
</body>
</html>
On my server, [url]http://www.slowcocoon.com/public/ksror/tips.htm
This is the script used in the gallery:
[code=php]
if($total_photos == 0){
print(“<td class=”body”>Kommer…</td>n”);
}
else for ($row=0; $row < $num_rows; $row++){
print(“<tr>n”);
for ($col=0; $col < $num_columns; $col++){
if($i < $total_photos){
$title = trim($photos[$i]);
$myTitle = split(‘[.]’, $title);
$thumbnail = $thumbnail_dir.trim($photos[$i]);
$thumb_image_size = getimagesize($thumbnail);
$image_size = getimagesize($img_dir.trim($photos[$i]));
$width = $image_size[1] + 50;
print(“<td align=”center” valign=”middle” width=”75″><a class=”prodLink” onFocus=”this.blur()” href=”javascript:photo_open(‘img/photo_display.php?photo=”.trim($photos[$i]).”‘,'”.$image_size[0].”‘,'”.$width.”‘);”><img border=”0″ src=””.$thumbnail.”” “.$thumb_image_size[3].”><br><br>”.$myTitle[0].”<br><br></a></td>n”);
} else {
print(“<td width=”75″><img src=”../../../../img/pr/pr_spcr_trans.gif” width=”75″></td>n”);
}
$i++;
}
print(“</tr>n”);
}
I’ve check phpinfo on both servers and can see that we are both running Linux, but other than that I don’t know what to look for.
Php info’s are here:
My server – [url]http://www.slowcocoon.com/phpinfo.php
Client’s server – [url]http://www.ksrør.no/phpinfo.php[/url]
Could someone please have a look, or offer some advice?