Can't seem to get PHP function exif_read_data to work
greg@gulik.org Gmail
greg at gulik.org
Thu Jan 12 09:45:27 PST 2012
Ok, it's only not working with Apache. I wrote a small test script that
works fine but not when a web page is calling that function.
Per your instructions:
# port contents php5-exif
Port php5-exif contains:
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/exif.so
/opt/local/var/db/php5/exif.ini
Oh wait, now it's there. What the hell. I even restarted Apache and it
still didn't load but now exif.ini is being loaded and the function IS
working.
Configuration File (php.ini) Path /opt/local/etc/php5
Loaded Configuration File /opt/local/etc/php5/php.ini
Scan this dir for additional .ini files /opt/local/var/db/php5
Additional .ini files parsed /*opt/local/var/db/php5/exif.ini,*
/opt/local/var/db/php5/geoip.ini, /opt/local/var/db/php5/iconv.ini,
/opt/local/var/db/php5/intl.ini, /opt/local/var/db/php5/mbstring.ini,
/opt/local/var/db/php5/mcrypt.ini, /opt/local/var/db/php5/mysql.ini,
/opt/local/var/db/php5/openssl.ini, /opt/local/var/db/php5/sqlite.ini
Thanks for your help.
On 1/12/12 11:37 AM, Aljaž Srebrnič wrote:
> Well, you could do a $port contents php5-exif and see where all the
> files are installed, and check if that directory is in you PHP
> include_path! :)
>
> greg at gulik.org Gmail wrote:
>> I'm having a weird problem where I can't get the PHP exif module to
>> work. It IS installed but I get the error " *Fatal error*: Call to
>> undefined function exif_read_data() in.." in my script.
>>
>>
>> # port list installed | grep php
>> php5 @5.3.8 lang/php5
>> php5-exif @5.3.8 php/php5-exif
>> php5-geoip @1.0.7 php/php5-geoip
>> php5-iconv @5.3.8 php/php5-iconv
>> php5-intl @5.3.8 php/php5-intl
>> php5-intl @5.3.8 php/php5-intl
>> php5-mbstring @5.3.8 php/php5-mbstring
>> php5-mcrypt @5.3.8 php/php5-mcrypt
>> php5-mysql @5.3.8 php/php5-mysql
>> php5-openssl @5.3.8 php/php5-openssl
>> php5-sqlite @5.3.8 php/php5-sqlite
>>
>>
>> I'm pretty new to macports so I've run out of ideas why it's not working.
>> I did check the output of the phpinfo() function and no references to
>> EXIF show up there.
>>
>> --
>> Greg Gulik http://www.gulik.com/greg/
>> greg @ gulik.com
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
--
Greg Gulik http://www.gulik.com/greg/
greg @ gulik.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120112/d025cd77/attachment.html>
More information about the macports-users
mailing list