behnamy - 2016-01-15 19:16:34
Hi, first I should thank you for class.upload.php It's great.
I have a problem in using this class that it returns two error when I turn on error reporting.
I get these errors:
Error: 2 strlen() expects parameter 1 to be string, array given ***** on line 2637 in C:\xampp\htdocs\class.upload.php
Error: 2 sscanf() expects parameter 1 to be string, array given ***** on line 2638 in C:\xampp\htdocs\class.upload.php
and this is my codes:
$handle->image_convert = 'jpg';
$handle->image_crop = $option['crop_percentage'] . '%';
$handle->image_bevel = 5;
$handle->image_bevel_color1 = '#FFFFFF';
$handle->image_bevel_color2 = '#FFFFFF';
$handle->image_overlay_color = $option['color'];
$handle->image_overlay_opacity = $option['color_opacity'];
$handle->image_brightness = $option['brightness'];
$handle->image_contrast = $option['contrast'];
$handle->image_opacity = $option['opacity'];
$handle->image_pixelate = $option['pixelate'];
$handle->image_unsharp = true;
$val_height=(0.1 * $option['reflection_px']);
$handle->image_reflection_height = $val_height;
$handle->image_reflection_space = -20;
// $handle->image_reflection_opacity = $option['reflection_opacity'];
$handle->image_border = 5;
$handle->image_border_color = $option['border_color'];
what is wrong with my code or maybe the problem is from the class's codes? please check it.