THanks for answering, i turned a debug statement into:
<?php
@ $size = getimagesize(images/$s[folderg]/$s[poster]);
$width = $size[0];
$height = $size[1];
echo $size[0];
echo $size[1];
if ( $width > $height )
{
$thumbwidth = "200";
$thumbheight = "120";
echo '$width > $height';
} else {
$thumbwidth = "120";
$thumbheight = "200";
echo '$width < $height';
}
echo '<br>thumbwidth = '.$thumbwidth ."<br>";
echo '<br>thumbheight = '.$thumbheight ."<br>";
echo 'validation = ' . $size[3];
?>
and i get an output as follows for all images:
$width < $height
thumbwidth = 120
thumbheight = 200
validation =
so there're two issues here,,, there is no echoing of size[0] and [1] and the if still is not happening. I wonder if it's something on the usage of getimagesize function or is it that the code is inside a function ???
oh i forgot to tell you... if i surpress the @ i get the following warning:
Warning: Division by zero in /home/website/public_html/imagesadmin/functions.php on line 539