PHP Fatal error: Call to undefined function exif_read_data ()

3

I created a site for a joinery where the user uploads photos of the work done by the joinery, but when the user uploads photos taken from a certain cell phone, the photos are displayed horizontally on the site, I was able to solve the problem (XAMPP), but when I upload the files to the server that my client has contracted 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 do not know any other way to do this verification of image data, but I need to solve this problem , thank you in advance if anyone knows otherwise.

    
asked by anonymous 02.05.2016 / 02:32

1 answer

2

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

EXIF Installation

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

extension=php_exif.dll

I'm not really familiar with this extension, but you can also take a look at this SOEN question

    
02.05.2016 / 02:39