wenn im upload picture the error was in this row !
is the prob. with witdh an height ! ??

$h           = number_format(($size[1] / $size[0]) * $width, 0, ',', '');

Recommended Answers

All 2 Replies

We need to know the Error Message

Debug all values.
I think size[0] is zero or blank.

echo '<br />$size[1] ->'.$size[1];
echo '<br />$size[0] ->'.$size[0];
echo '<br />$width ->'.$width;
exit;
$h = number_format(($size[1] / $size[0]) * $width, 0, ',', '');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.