How to "enable exif"?
Posted 17 September 2006 - 12:15 AM
I want to read exif data from a picture. I read on "the manual" that in order to use the exif functions I must configure php to "enable exif".
How do I do this? Remember I am very much a novice? I need directions that a moron could follow.
I doubt I will be able to answer any questions. So here is my phpinfo() page if that will help you give me very straitforward directions. http://www.photograp...m.com//test.php
Posted 17 September 2006 - 08:11 AM
1) Download the version of PHP you're using
2) Extract the contents into whichever directory you choose.
tar -xzvf php-5.0.4.tar.gz
3) Go into the exif directory. The directory name (php-5.0.4) shown in the example below may not be correct.
4) run phpize
5) run configure
6) run make
If you see errors that refer to "mbstring" then you may need to run configure again using the following
CPPFLAGS='-I../mbstring/' ./configure --enable-exif=shared
run make again
If it runs fine with no errors. You should see a file in ./modules/ named exif.so
If you've gotten this far, post here saying so as all you need to do now is copy it to the appropriate directory ("extension_dir"), modify the php.ini adding "extension=exif.so" and restart Apache.
Posted 17 September 2006 - 02:08 PM
If this is a shared host or you know nothing about linux contact your host and ask them about enabling the extension.
Thank you very much for your help.
I suspect the host is shared, and I know I know nothing about linux. I succeeded in step 1...
So I emailed host's tech support, 5 minutes later I got a reply saying exif is now installed. So I guess it is very easy when you know what you are doing.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users