How to view files content from a different directory |
Hi all, I'm trying to create links to the files located in different folder with the below link structure(just for reference):
https://mywebsite/index.php/report/generateList However, when I click on the link links generated, it shows an error 404 Page Not Found. The folder in question, is in a completely different location(not within Codeigniter directory). So I was wondering if anyone can shed some light on how I can create the link to view the content of the files when click on it? Here is my code: PHP Code: <?php Thank you in advance!
Can you show us your directory structure?
app system public -- assets -- index.php etc; You can try this: PHP Code: $directory = "/apps/text_files/"; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |