
You can rate examples to help us improve the quality of examples. Require_once("./applications/controllers/basic. These are the top rated real world PHP examples of exifimagetype extracted from open source projects. This function can be found in any PHP version silimar or greater than 5.2.0. Require_once("./applications/constants/connection.php") The imagetypetoextension () function is an inbuilt function in PHP which is used to get the file extension for an image type. But it could be that i am doing the $_FILES array wrong.

The problem now i see is that the form is not sending file or at least that is what it says in the error array i setup. Ok i have changed it from a posting to a file to posting to the same page. For some reason it does not recognise jpg, png or anyfile to be honest.Ĭan you please enlighten me to my noobish mistakes (:įiles accepted are * JPG, GIF & PNG only! and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more. Its not about the connection as it does not even get that far.īasically it fails on the exif_imagetype. It passes through the form and sends fine to the processing script.

Hi i am new at this game and i am stuck on a relatively easy image upload script.
