I am trying to save a file in a folder outside root directory and then read it's contents.
For example My working directory is /var/www/html/project_folder and I want to save file in /var/www/new_folder
I'm working with laravel 5.2, so my root path is /var/www/html/project_folder/public
I have granted all permissions to new_folder. I have tried $_SERVER['DOCUMENT_ROOT'] or realpath, but not working.