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 8086727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:32:34+00:00 2026-06-05T18:32:34+00:00

I have been trying to display some basic EXIF data from a photo with

  • 0

I have been trying to display some basic EXIF data from a photo with no luck. My code is below. I just need to display a few basic pieces of information. I have EXIF enabled on the server and I know this image has EXIF data in there – but no data shows up with this set up. Can anyone tell me what I am doing wrong here?

$exif_data = exif_read_data("http://www.findexif.com/client/samples/swiss_house.jpg");

        $emake = $exif_data['Make'];
        $emodel = $exif_data['Model'];
        $eexposuretime = $exif_data['ExposureTime'];
        $efnumber = $exif_data['FNumber'];
        $eiso = $exif_data['ISOSpeedRatings'];
        $edate = $exif_data['DateTime'];

    echo "Make: ". $emake . "<br>";
        echo "Model: ". $emodel . "<br>";
        echo "Exp: ". $eexposuretime . "<br>";
        echo "Date: ". $edate . "<br>";
        echo "ISO: ". $eiso . "<br>";
  • 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-05T18:32:35+00:00Added an answer on June 5, 2026 at 6:32 pm

    The filename of exif_read_data cannot be an URL.

    If you still want to read EXIF data of external image, you need to download it first:

    <?php
    $imageURL = 'http://www.findexif.com/client/samples/swiss_house.jpg';
    $localURL = '/tmp/swiss_house.jpeg';
    
    // Use 'copy' function if you have PHP5
    //  and the HTTP stream wrapper enabled on your server.
    copy($imageURL, $localURL);
    
    /**
     * This way if you don't have PHP5
    $fp = fopen($localURL, 'w');
    fwrite($fp, file_get_contents($imageURL));
    fclose($fp);
     */
    
    $exif_data = exif_read_data($localURL);
    
    $emake = $exif_data['Make'];
    $emodel = $exif_data['Model'];
    $eexposuretime = $exif_data['ExposureTime'];
    $efnumber = $exif_data['FNumber'];
    $eiso = $exif_data['ISOSpeedRatings'];
    $edate = $exif_data['DateTime'];
    
    echo 'Make: '. $emake . '<br>';
    echo 'Model: '. $emodel . '<br>';
    echo 'Exp: '. $eexposuretime . '<br>';
    echo 'Date: '. $edate . '<br>';
    echo 'ISO: '. $eiso . '<br>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need it so badly I have been trying it from 3 days but
I have been trying to display a MySQL table for some time and I
I need some help. I have been searching for days trying to find solution
I've been trying for a while to display some data in a listbox/listview that
I have been trying to use the SAX parser on Android to display some
I have been trying to display json data in my jsp using struts and
Background : I have been trying to display a sentence with Bold and Italic
I have been trying to create a slide left effect to display my page
I have been trying this for a little while nut just cannot get to
I have been trying to find the correct way to sum 2 rows from

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.