zero-perfoliate
zero-perfoliate

Author Topic: getimagesize error  (Read 265 times)

Offline w0aini

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
getimagesize error
« on: September 30, 2009, 07:39:56 PM »
Hi,

I'm having this error in my script. It's a registration form for Joomla.

The code I'm having problem with is as follows:
Code: [Select]
$ufile_properti=getimagesize($ufile['tmp_name']);
It will show an error if I don't upload any avatar in the registration form.
Code: [Select]
Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/xxx/public_html/xxx.php on line 103
However, it will be fine if I upload an avatar in the form itself.

Can anyone help me in this?

Thanks.

Regards,
Alex

 

zero-perfoliate