
September 24th, 2007, 16:22 PM
|
| Administrator
Join Date: Jun 2007
Posts: 3,709
BRL$: 42,930.70 Thanks: 0
Thanked 14 Times in 10 Posts
Rep Power: 409 | | Division by zero error My script for resizing images brings up loads of error messages! I cant figure out why?Here are the errors:---Quote---*Warning*: Division by zero in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *10**Warning*: imagecreatetruecolor(): Invalid image dimensions in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *11**Warning*: imagecopyresampled(): supplied argument is not a valid Image resource in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *13**Warning*: imagejpeg(): supplied argument is not a valid Image resource in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *16**Warning*: imagedestroy(): supplied argument is not a valid Image resource in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *18**Warning*: imagedestroy(): supplied argument is not a valid Image resource in */var/ To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. on line *19*---End Quote---and here is my PHP code:PHP:------------------Can anyone see what is wrong with it? I think its all down to the division on line 10, but I dont see how its different to any other division? To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. █ Jobs In !!! - Post Jobs, Hire Employees, Create Blogs and
Earn Money. | | | |