Hi Josh,
Thanks for youre response, it works now ok.
I put a "@" before getimagesize.
The error message is gone away now.
The only thing is that it takes up to 20 seconds before the message opens and the picture shows.
It doesn't make a difference if it is a small or big picture.
Any ideas?
And to be honest: i really have no idea if php is running in safe mode. I just insalled it and an apache server and was surprised that it worked!