Hello
looking for help insight
I have a photographer ftping processed images with metadata to a plugins uploads folder (plugins/bulkuploader/uploads/).
Then in back end an admin page that lists all images(as a thumbnail) in that folder along with two fields per image A title and tags field where he can enter that info check off the image and hit update to move it into a single post and appear on the front end. However since he enters the metadata in the lightroom processing phase I want to be able to pre populate those title and tags field from the metadata in the image. So I want access to the matadata straight form the image from the folder.
I have tried phps exif_read_data and wordpress' wpwp_read_image_metadata to no avail as they both return false
example code
$theImage = "pathtouploads/plugins/bulk-uploader/uploads/uploadTest.jpg";
$exif = exif_read_data($theImage);
echo $exif===false ? "No header data found guy.<br />\n" : "Image contains headers<br />\n";
var_dump($exif);
I have tried variations with both functions and always get false.
I have changed permissions to be wide open just to see but no luck
with error reporting turned on I get:
Warning: exif_read_data() [function.exif-read-data]: HTTP request failed! HTTP/1.1 404 Not Found in /pathtowp/httpdocs/wp/test.php on line 8
Warning: exif_read_data() [function.exif-read-data]: Unable to open file in /pathtowp/httpdocs/wp/test.php on line 8
where line 8 is the exif read data call on the image that does exist.
is wordpress diasallowing this or I have no idea
Any ideas?
UPDATE
OKay I have narrowed it done to a path issue I guess as exif_read_data only works on local files and iwas passing full wp pathe from web root with http so I got it working on a test.php file separate fro wordpress but it still won;t work in the context of the plugin.