I am trying to use the is_dir function, but it always returns false even if the directory does indeed exist. I am a very new Linux user(xubuntu), and i read in similar questions here that the issue is probably the directory permission. I have tried using:
sudo chmod -R folder_path
But it's still not working. How can i fix it? Thanks.
EDIT: I forgot to mention that i am working in codeigniter. I have tried to use file_exists(which like is_dir doesn't work in my codeigniter project) on 2 separate files, and it worked. Is it possible that the problem is because i am using codeigniter?