I am attempting to move a program from one server to another and the same script will not work and I can't figure out why...The below is a scaled down version of my script that fails:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$string=file_get_contents("../photos/report14/concreteCurb/baseCompaction1.jpeg");
$exif = exif_read_data("data:image/jpeg;base64," . base64_encode($string));
print_r($exif);
?>
The server that works spits out a simple
Array ( [FileName] => Z [FileDateTime] => 0 [FileSize] => 137976 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => COMMENT [COMPUTED] => Array ( [html] => width="773" height="1000" [Height] => 1000 [Width] => 773 [IsColor] => 1 ) [COMMENT] => Array ( [0] => CREATOR: gd-jpeg v1.0 (using IJG JPEG v90), quality = 90 ) )
...but the one that doesn't throws...
Warning: exif_read_data(): Unable to open file in /nfs/c11/h01/mnt/208416/domains/s208416.gridserver.com/html/advantage/scripts/test.php on line 5
Both have EXIF Support enabled (both version 1.4). PHP version on the old server is 5.3.5 whereas the new has 5.5.21, but I also tried it reverted back to 5.3.29 to no avail.