I am teaching myself PHP and getting along reasonable well, but have hit a brick wall with exif functions. The functions don't seem to be recognised:

undefined function: exif_read_data()

I gather php varies from build to build, so I am using php4.3.1, will this have an effect?

Thanks

Capper

    you have to have the exif extension loaded, are you on Windows or *nix?

      then find your php.ini file and uncomment the line

      extension=php_exif.dll

        excellent. BUT. I have done that and it now errors its inability to find the php_exif.dll file. I have downloaded the latest PHP binary release and unziped the dll and placed it in the extensions folder after altering php.ini thus:

        extension_dir = d:\php\dlls

        However, I still get an error:

        Unable to load dynamic library 'd:\php\dlls\php_exif.dll' - the specified procedure could not be found

        what next? (very confusing this php stuff)

        thanx again

          the extension_dir shouldn't be /php/dlls (everything in there should be in /windows/system32), but rather /php/extensions

          hth
          moon 🙂

            still not working, and getting the same error message that the specified procedur cant be found (but its there! I can see it!)

            :mad:

            I noted on a forum elsewhere something about this problem with regards to XP (I am on XP pro) but found no solution. Anyone out there familiar with this???

            🙁

              I just tested it on my XP box, and had no problem. Ext dir set like this:

              extension_dir = "C:\php\extensions"

                ahh the dreaded backslash of windows... i completely forgot. yes, LordShryku's way should work.

                  sorry to be a spoil sport, but I spotted that one meself a while back, and still no go.

                  I've had to turn the exif off now as it pulls up the problem everytime I try to run any php script.

                  🙁

                    2 years later

                    I too have this problem.

                    Have put the exif dll in c:\php\extensions dir and un-commented out the extension=php_exif.dll line in the php.ini file.

                    any ideas?

                    with it being on a windows platform, I don't have to re-boot do it?!

                    or maybe, are there any other dlls that must first be loaded?

                    tia.

                      Originally posted by StevenJ
                      I too have this problem.

                      Have put the exif dll in c:\php\extensions dir and un-commented out the extension=php_exif.dll line in the php.ini file.

                      any ideas?

                      with it being on a windows platform, I don't have to re-boot do it?!

                      or maybe, are there any other dlls that must first be loaded?

                      tia.

                      well i think u cud try the same way i installed mysql tho im not sure if it will work. make sure you restart the server after u make changes....

                      i think if its like mysq try making a copy of the .dll and putting it into C:\WINDOWS\System32\ i believe

                        Write a Reply...