I have an imagehosting script which has a logo on its top right. Now in the index.php i have successfully changed that logo to a new logo which is larger in size. But my upload.php gives an error when i change the image size. I changed this: to: Now when ever you open the upload.php the following warning appear on the page: and here are those lines Apprently after a certain size of the logo if you increase the size even more these warning appear. Please someone help me, the people i got the script from has closed down thier business. I need help x( Thanks in advance to everyone that contributes to this thread, helpful answers will be awarded with reputation at the least
I highly doubt that the HTML changes in another file affect your PHP code. Are you sure you didn't change anything else? Maybe by accident? If you change the HTML back like it was before, does the error disappear?
Maybe you misunderstood what i said, sorry for my bad english. I changed the image size of the logo in all the pages example: index.php imageview.php and the logo successfully changed with no problem whatsoever. But, when i edited my upload.php file and changed the logo size it did execute and when i visit my upload.php page the logo has become of the size i wanted "but" the page also shows the warnings.
I still doubt that this would cause errors cause I can't think of a way it would affect your PHP code. When you change the image back exactly like it was before, does the error disappear? (I'd be surprised if it did)
thats exactly what happends..but only with the upload.php file. rest of the pages all work fine when the same change is made to them
would you please show us the value of $img PHP: I had the same problem 2 days ago; I fixed it by giving the image functions absolute paths instead of relative paths. The first error message means that $img have not been opened by the function. The 2 other messages will disappear as soon as you fix the first one.
Actually i am not very good with php and i dont understand what you are asking for, i can pm u the upload.php file if ud like though