PHP Fatal error: Call to Undefined Function exif_read_data()

Asked

Viewed 489 times

3

I created a site for a joinery where the user uploads the photos of the work done by the joinery, only when the user uploads photos taken from a particular phone, the photos are displayed horizontally on the site, I was able to solve the problem by checking the image’s Exif and rotating it when necessary, so far so good, works perfectly on my local server (XAMPP)but when I upload the files to the server my client hired to host the site I have the following error:

PHP Fatal error: Call to Undefined Function exif_read_data(), the PHP version of my XAMPP is 5.6 and the contracted server is 5.4, I don’t know any other way to check the image data, but I need to solve this problem, I would appreciate it if someone knew otherwise.

  • Do not use tags that have nothing to do with the problem. Understand as a constructive criticism.

1 answer

2

You will have to ask your hosting provider to install the extension exif, in case the hosting supports such an operation.

Installation of the EXIF

If it is already installed, you can also enable in your php.ini the extent exif.

extension=php_exif.dll

I don’t know this extension very well, but you can also take a look at this question from the SOEN

Browser other questions tagged

You are not signed in. Login or sign up in order to post.