I try to insert images in my database with PHP and MySQL with a temporary folder.
I use laravel and this is my controller:
if(isset(
In your Config file or some common file define your path as below
define('DOCROOT', $_SERVER['DOCUMENT_ROOT'].'/');
Include this common php in all your class file.
Then
$destino= DOCROOT.'Perf_Masc/'.$img; // HERE DOCROOT is defined in config.