Posted by Anonymous Fri 24th Jun 2005 22:54 - Syntax is PHP - 1051 views
Modification of posting from Anonymous Fri 24th Jun 2005 22:37Run this post in the PHP shell
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
  1. //calculate thumb size
  2. $ow = imagesx($im);
  3.    $oh = imagesy($im;
  4. $maxh = 100;
  5. $maxw = 150;
  6. $new_h = $oh;
  7. $new_w = $ow;
  8. if($oh > $maxh || $ow > $maxw){
  9.       $new_h = ($oh > $ow) ? $maxh : $oh*($maxw/$ow);
  10.       $new_w = $new_h/$oh*$ow;
  11. }
  12. //create dst image
  13. $dst_img = ImageCreateTrueColor($new_w,$new_h);
  14. //resize and copy image
  15. ImageCopyResized($dst_img, $im, 0,0,0,0, $new_w, $new_h, ImageSX($im), ImageSY($im));
  16. $function_image_new($dst_img,$galdir.$file);
  17. ?>

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:37Run this post in the PHP shell
Download | New Post | Modify | Diff | Hide line numbers