I have a project for reading a file from the external codeigniter directory, but on the same server
example:
codeigniter folder path:
Manual / XAMPP / HTDOCS / yourprogramname / application
but I want to read the file:
purchase / panel / filename.txt
my custom code:
$handle = fopen("purchase/dashboard/filename.txt", "r");
echo $handle;
?>
How can I do this in a code igniter? I know how to read a file from the same directory on the Internet code (the resource of the / etc folder in the application), but when I tried ././ or ../ codeigniter did not read the contents of the file
source
share