title: GET Longitude and Latitude from image
body: <p>I want to get Latitude and Longitude from uploaded image. I have read and found <code>exif_read_data</code> function. But It doesn't return GPS information. My server php.ini say
  <img src="https://i.stack.imgur.com/9P2WQ.png" alt="enter image description here"></p>
  
  <p>And I am getting as below</p>
  
  <pre><code>$exif = exif_read_data('pulbic/images/uploaded_photos/01af_ae31.jpg');
  </code></pre>
  
  <p>And <code>print_r($exif)</code> only shows</p>
  
  <pre><code>Array
  (
      [FileName] =&gt; 01af_ae31.jpg
      [FileDateTime] =&gt; 1403961175
      [FileSize] =&gt; 32658
      [FileType] =&gt; 2
      [MimeType] =&gt; image/jpeg
      [SectionsFound] =&gt; COMMENT
      [COMPUTED] =&gt; Array
      (
          [html] =&gt; width="720" height="540"
          [Height] =&gt; 540
          [Width] =&gt; 720
          [IsColor] =&gt; 1
      )
  
     [COMMENT] =&gt; Array
      (
          [0] =&gt; CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality
  
      )
  
  )
  </code></pre>
  
  <p>I have taken images from smart phones as well as from webcam of my laptop. I want to have <code>GPSLongitude, GPSLongitudeRef , GPSLatitude, GPSLatitudeRef</code> information using <code>exif</code>.</p>
  
  <p>I have checked with an online exif tool. Same image has GPS headers but php function is not returning it. </p>
  
  <p>Any guideline will be much appreciated.</p>