• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to load files when stored OUTSIDE public folder

#1
[eluser]Christophe28[/eluser]
Hello,

I'm a new user of codeigniter.

I wonder how to load photos when they are stored OUTSIDE the public folder. I used to simply get the filename out the database and load it in the view, something like:
Code:
<img src="http://mydomain.com/uploads/&lt;?php echo $filename; ?&gt;" />
but now I want to store all files outside the public folder in /var/www/mydomain/uploads (instead of /var/www/mydomain/public/uploads) I have been told this is more secure.

So how to tell codeigniter to search for the files outside the public folder and then pass it to the view?

Thx for any help or suggestions!

Christophe


Messages In This Thread
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 09:33 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:29 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:30 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-23-2010, 01:36 PM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 06:21 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 06:50 AM
How to load files when stored OUTSIDE public folder - by El Forum - 06-24-2010, 09:20 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.