Jump to content


Photo

How to "enable exif"?


  • Please log in to reply
2 replies to this topic

#1 acroporas

acroporas
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 17 September 2006 - 12:15 AM

To say that I am a beginner with this, would be an understatment.  Last night I was at the level of doing a google search for "what is php?"  So please forgive me if my question is stupid.

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



#2 shoz

shoz
  • Staff Alumni
  • Advanced Member
  • 600 posts

Posted 17 September 2006 - 08:11 AM

If this is a shared host or you know nothing about linux contact your host and ask them about enabling the extension.

1) Download the version of PHP you're using
http://museum.php.ne...hp-5.0.4.tar.gz

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.
cd php-5.0.4/ext/exif/

4) run phpize
phpize

5) run configure
./configure --enable-exif=shared

6) run make
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
make

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.


#3 acroporas

acroporas
  • Members
  • PipPip
  • Member
  • 15 posts

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.

Thanks again

Will





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users