directory_map() not working outside of application |
[eluser]iamdadude[/eluser]
Is there a reason as to why Code: $map = directory_map('./', TRUE); Code: $map = directory_map('../', TRUE); Thanks!
[eluser]Clooner[/eluser]
[quote author="iamdadude" date="1274350649"]Is there a reason as to why Code: $map = directory_map('./', TRUE); Code: $map = directory_map('../', TRUE); Thanks![/quote] How are your directory permissions set?
[eluser]Clooner[/eluser]
If you only have readaccess then for sure mndir won't work. For the directory mapper try Code: $map = directory_map(real_path('../'), TRUE); For the permissions make sure you have them at 0444 or higher.
[eluser]iamdadude[/eluser]
They're at 0755 and what you just posted still doesn't work. This is upsetting.
[eluser]Clooner[/eluser]
try Code: $canopen = opendir(realpath('../'));
[eluser]iamdadude[/eluser]
It's blank. I made sure that there's nothing else that could be throwing off a PHP error, and it still showed blank. Here's what I have in the controller - Code: function create_path() {
[eluser]Clooner[/eluser]
[quote author="iamdadude" date="1274383116"]It's blank. I made sure that there's nothing else that could be throwing off a PHP error, and it still showed blank. Here's what I have in the controller - Code: function create_path() { If it doesn't return anything or false it means it can't open the directory. |
Welcome Guest, Not a member yet? Register Sign In |