--- Marian Briones <[EMAIL PROTECTED]> wrote: > Hi gang > > I'm uploading a photo and then checking the image size, and keep > getting an illegal division by zero error. > > copy($photo, "/home/user/public_html/memberfiles/$photo_name"); > > // let's make sure the uploaded file isn't gigantic > // $size = GetImageSize( $images_dir."/".$filename ); > $size = GetImageSize( > home/user/public_html/memberfiles."/".$photo );
Some quotes around this last file path would help. Each word is being treated as a constant. Since they are undefined, they are treated as value of 0. James Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
