I want to access files which is outside the var folder in linux server and my codeigniter-3 project inside /var/www/html.
and the files inside /data folder.
"/data/admin_assets/upload_files/Photos/nala/start_photo.jpg" that is the path stored in the data base so when i access this url I have get 404- Not found Error
You can use readfile of PHP to read a file and return to browser. An example can be use like this:
And make sure you set permission so that web server can access that directory:
data/admin_assets/upload_files/Photos/nala/