$config['img_path'] = '/media'; // media is directory where i want to store images $config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path'];
$_SERVER['DOCUMENT_ROOT']
$_SERVER['root']
"C\xampp\htdocs\tutorials"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)