Posted by Anonymous Fri 24th Jun 2005 22:54 - Syntax is PHP - 1051 views
Modification of posting from Anonymous Fri 24th Jun 2005 22:37
Download | New Post | Modify | Diff | Hide line numbers
Modification of posting from Anonymous Fri 24th Jun 2005 22:37

Download | New Post | Modify | Diff | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected ';' in post on line 4
Parse error: syntax error, unexpected ';' in post on line 4
-
-
//calculate thumb size
-
$ow = imagesx($im);
-
$oh = imagesy($im;
-
$maxh = 100;
-
$maxw = 150;
-
$new_h = $oh;
-
$new_w = $ow;
-
if($oh > $maxh || $ow > $maxw){
-
$new_h = ($oh > $ow) ? $maxh : $oh*($maxw/$ow);
-
$new_w = $new_h/$oh*$ow;
-
}
-
//create dst image
-
$dst_img = ImageCreateTrueColor($new_w,$new_h);
-
//resize and copy image
-
ImageCopyResized($dst_img, $im, 0,0,0,0, $new_w, $new_h, ImageSX($im), ImageSY($im));
-
$function_image_new($dst_img,$galdir.$file);
-
?>
PermaLink to this entry https://pastebin.co.uk/29
Posted by Anonymous Fri 24th Jun 2005 22:54 - Syntax is PHP - 1051 views
Modification of posting from Anonymous Fri 24th Jun 2005 22:37
Download | New Post | Modify | Diff | Hide line numbers
Modification of posting from Anonymous Fri 24th Jun 2005 22:37

Download | New Post | Modify | Diff | Hide line numbers