I am trying to use exiftool (because it has all image tags vs. other tools) on a webserver. The perl module is installed in /bin/exiftool
The test.jpg is the same directory and has EXIF data.
<?php
#!/usr/bin/exiftool
$array = [];
eval(`$array=` . `exiftool -php -q test.jpg`);
print_r($array);
?>
The $array is empty though. I also tried:
eval(`$array=` . `exiftool -php -q test.jpg > output.txt`);
This creates an empty output.txt file.
I feel I have something very basic wrong but can't work it out. Like to add, I am on a shared host and have root/command line access.
No Update: I still struggle. I think it's related to cgi / perl (or my lack of knowledge about it)