Can Directory Helper access directories outside httpdocs? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can Directory Helper access directories outside httpdocs? (/showthread.php?tid=22054) |
Can Directory Helper access directories outside httpdocs? - El Forum - 08-27-2009 [eluser]dobbler[/eluser] Hi, Anyone know if it's possible to use the Directory Helper to display files and folders within a directory outside the "www" or httpdocs. If so, what path should I enter, pre-slash? Trailing Slash? or if not, anyone have any ideas how I could go about it? Many thanks, Rob. Can Directory Helper access directories outside httpdocs? - El Forum - 08-27-2009 [eluser]brianw1975[/eluser] lol, Did you not just try it and see what would happen? I would be careful with doing that on a shared host.... As for a real answer it all depends on where the file is at on how you would get to it.... do whatever gets you there faster either ../../ or /var/www/mysite/otherdocs/a.html (not sure about winders) As for the directory helper.... as it says: "Note: Paths are almost always relative to your main index.php file." the example has './mydirectory/' and from the source it looks like you should be able to feed it a hard location i.e. '/etc/' |