Reach files which are stored on your server disk.
Hello, I planned to make a control panel for users uses applications that my server hosts.
But those application files are not public, because that is not really secure.
Now the problem is that I want to show the log file that the application makes at the control panel of the user.
The only problem is i dont know how to show this file because it's not in my public_html.
So my question is, how can I reach a file that isn't in my public_html but it is at my server disk.
If you understand what I mean, I hope somebody know a solution to this.
you write a php routine to load the file from disk from the non-public folder, and print its contents.
<?php echo file_get_contents('path/to/YOUR/logfile.txt'); ?>
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)