I am trying to use scandir to find files and folders in a directory. The directory containing the code is 'mobile' while the directory containing the sub directories to be scanned is called 'downloads', they are both inside another directory called 'BOLDzBRASS' which is in the root directory.
So we have 'BOLDzBRASS/mobile' (containing my webpage file) and 'BOLDzBRASS/downloads'.
If I use "scandir('downloads')" from within the 'mobile' directory it fails with the error "failed to open dir: No such file or directory ", BUT if I move my file out of 'mobile' and into the 'BOLDzBRASS' directory it works perfectly!
I have tried various variations like "scandir('www.fmtest.info/BOLDzBRASS/downloads')" or "scandir('/public_html/BOLDzBRASS/downloads')" but with no success.
I would really like to have my file in the 'mobile' directory with all the mobile web pages just to keep things tidy. Can anyone throw any light on this?
So we have 'BOLDzBRASS/mobile' (containing my webpage file) and 'BOLDzBRASS/downloads'.
If I use "scandir('downloads')" from within the 'mobile' directory it fails with the error "failed to open dir: No such file or directory ", BUT if I move my file out of 'mobile' and into the 'BOLDzBRASS' directory it works perfectly!
I have tried various variations like "scandir('www.fmtest.info/BOLDzBRASS/downloads')" or "scandir('/public_html/BOLDzBRASS/downloads')" but with no success.
I would really like to have my file in the 'mobile' directory with all the mobile web pages just to keep things tidy. Can anyone throw any light on this?