Mozilla error when uploading photo. IE works fine.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Mozilla error when uploading photo. IE works fine.

Post by voltrader »

Up till now, I've been testing my scripts on IE.

I have a page where a user can upload a photo for a profile, and everything works smoothly in IE.

I tested it using Mozilla, and I get a bunch of header errors as so:

Warning: imagecreatefromgif(): '/usr/www/users/website/images/1e8187afd0e3552c25c201ee4627fd73.gif' is not a valid GIF file in url

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in ...

Why would a client side interpreter produce server side errors?
User avatar
genetix
Forum Contributor
Posts: 115
Joined: Fri Aug 01, 2003 7:40 pm
Location: Sask, Regina
Contact:

Post by genetix »

IE makes life simple. In doing so it also makes poor quality scripts on the web. I would suggest first updating your HTML as I am assuming you probably haven't done. Make sure your HTML is coded according to standards.

It may have something to do with the way the form is sent to the next page.
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

HTML in main page seems to be pretty standard.

I also get a bunch of header errors:

Cannot modify header information - headers already sent by (output started at /usr/www/users/website/includes/...)

I believe this means HTML is being sent to browser before header renders(?).
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

it might help to see your code...
Post Reply