Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:10:22+00:00 2026-06-03T05:10:22+00:00

Im trying to get the image size for an image in my server and

  • 0

Im trying to get the image size for an image in my server and the data is in a database or my getimagesize function looks like this

$size = getimagesize(upload/$array['image']);
print_r($size);

I get these errors back…

Warning: Division by zero in /home/content/44/8713044/html/view/home/home.html on line 81

Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/content/44/8713044/html/view/home/home.html on line 81

the image is in the right place…what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:10:24+00:00Added an answer on June 3, 2026 at 5:10 am

    Your path isn’t in quotes, so it’s not a string.

    $size = getimagesize(upload/$array['image']);
    

    It’s trying to mathematically divide a constant named upload by $array['image'].

    Use quotes and concatenate like this:

    $size = getimagesize('upload/' . $array['image']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the image.size.h and image.size.w of the UIImage inside of an
Im trying to get an image from a wcf rest service like so: [ServiceContract]
I am trying to get an image from an HTTP server using Perl. I
I'm currently trying to get this image-map to work: <img src=products1.png usemap=products1-map style=margin-bottom: 36px
I've been trying to get an Gtk2::Image object in this Perl Gtk2 application to
I've a crystal report that I'm trying to get a dynamic image displayed. This
I am trying to Upload image Capture by Camera into server. server send response
I am trying to upload an image to a directory on a server. i'm
I am trying to get the image type in the database but the below
I am getting these errors when trying to upload an image to the server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.